最接近的命名颜色 · #CF2931
#CF2931
最接近的命名颜色: Persian Red
#CF2931(rgb(207 41 49)、hsl(357 67% 49%)、oklch(0.557 0.2 24.7))最接近命名颜色 Persian Red。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#CF2931
oklch(0.557 0.2 24.7)
颜色转换
- HEX
- #cf2931
- RGB
- rgb(207 41 49)
- HSL
- hsl(357 67% 49%)
- HWB
- hwb(357 16% 19%)
- OKLCH
- oklch(0.557 0.2 24.7)
- OKLab
- oklab(0.557 0.182 0.084)
- CIE Lab
- lab(46.52 63.57 39.56)
- LCH
- lch(46.52 74.87 31.9)
- CMYK
- cmyk(0% 80% 76% 19%)
浅色调 · 深色调 · 灰色调
浅色调
- D74746
- DE5F5B
- E5756F
- EB8A83
- F09E97
- F5B1AB
- F9C5C0
- FCD8D5
- FEECEA
深色调
- B42229
- 991C22
- 7F151A
- 670F13
- 4F090C
- 380506
- 230203
- 100101
- 020000
灰色调
- C9393B
- C24644
- BC504C
- B55954
- AD615C
- A66863
- 9D6F6A
- 947572
- 8B7B79
配色和谐
互补色 +180°
- CF2931
Persian Red
- 00838E
≈ True Teal
类似色 -30° +30°
- CF2931
Persian Red
- C52A7A
≈ Magenta Dye
- AF5900
≈ Elm Brown Red
三角配色 +120° +240°
- CF2931
Persian Red
- 008C21
≈ Tropical Forest Green
- 3667E7
≈ Bluetiful
分裂互补色 +150° +210°
- CF2931
Persian Red
- 008770
≈ Summer Turquoise
- 007DAE
≈ Neptune
四角配色 +90° +180° +270°
- CF2931
Persian Red
- 727B00
≈ Flag Green
- 00838E
≈ True Teal
- 7F50DA
≈ Gloomy Purple
对比度与无障碍
Ag
AA白底
WCAG 5.23:1 · APCA Lc 74
Ag
Fail黑底
WCAG 4.01:1 · APCA Lc 27
最佳文字颜色: #FFFFFF
WCAG 5.23:1 (AA) · APCA Lc 74
Contrast pairs
代码片段
CSS
:root {
--persian-red: #cf2931;
--persian-red-rgb: 207 41 49;
--persian-red-oklch: oklch(0.557 0.2 24.7);
}
.element {
color: var(--persian-red);
background-color: hsl(357 67% 49%);
border-color: oklch(0.557 0.2 24.7);
}Tailwind CSS v4
@theme {
--color-persian-red: #cf2931;
--color-persian-red-50: #ffe0d7;
--color-persian-red-100: #ffcec4;
--color-persian-red-200: #ffb2a6;
--color-persian-red-300: #ff8b7f;
--color-persian-red-400: #ff6360;
--color-persian-red-500: #ee333b;
--color-persian-red-600: #c92e33;
--color-persian-red-700: #a22529;
--color-persian-red-800: #79181f;
--color-persian-red-900: #551014;
--color-persian-red-950: #390206;
}SCSS
$persian-red: #cf2931;
$persian-red-rgb: 207, 41, 49;
$persian-red-light: mix(#fff, $persian-red, 20%);
$persian-red-dark: mix(#000, $persian-red, 20%);
.element {
color: $persian-red;
box-shadow: 0 0 0 2px rgba($persian-red, 0.35);
}