最接近的命名颜色 · #D7170F
#D7170F
最接近的命名颜色: Redsurrection
#D7170F(rgb(215 23 15)、hsl(2 87% 45%)、oklch(0.559 0.22 29.2))最接近命名颜色 Redsurrection。查看浅色调、深色调、和谐色、WCAG 与 APCA 对比度,以及 CSS、Tailwind v4 和 SCSS 代码。
#D7170F
oklch(0.559 0.22 29.2)
颜色转换
- HEX
- #d7170f
- RGB
- rgb(215 23 15)
- HSL
- hsl(2 87% 45%)
- HWB
- hwb(2 6% 16%)
- OKLCH
- oklch(0.559 0.22 29.2)
- OKLab
- oklab(0.559 0.192 0.107)
- CIE Lab
- lab(46.66 68.82 57.01)
- LCH
- lch(46.66 89.37 39.6)
- CMYK
- cmyk(0% 89% 93% 16%)
浅色调 · 深色调 · 灰色调
浅色调
- DF4032
- E55A4B
- EC7262
- F18778
- F59C8E
- F9B0A4
- FCC4BB
- FED8D1
- FFEBE8
深色调
- BB120B
- 9F0E08
- 850A05
- 6B0603
- 520402
- 3B0201
- 250100
- 110000
- 020000
灰色调
- D03024
- C94033
- C24C3E
- BA5649
- B25F53
- A9675D
- A06E66
- 96746F
- 8C7A77
配色和谐
互补色 +180°
- D7170F
Redsurrection
- 008393
≈ Island Lush
类似色 -30° +30°
- D7170F
Redsurrection
- CF1271
≈ Moth Orchid
- AB5D00
≈ Raw Umber
三角配色 +120° +240°
- D7170F
Redsurrection
- 008C3C
≈ Cold Green
- 4461F2
≈ Secret of Mana
分裂互补色 +150° +210°
- D7170F
Redsurrection
- 008775
≈ Summer Turquoise
- 007CB6
≈ Artesian Water
四角配色 +90° +180° +270°
- D7170F
Redsurrection
- 6C7E00
≈ Topiary Garden
- 008393
≈ Island Lush
- 8A47DF
≈ Gloomy Purple
对比度与无障碍
Ag
AA白底
WCAG 5.22:1 · APCA Lc 74
Ag
Fail黑底
WCAG 4.01:1 · APCA Lc 28
最佳文字颜色: #FFFFFF
WCAG 5.22:1 (AA) · APCA Lc 74
Contrast pairs
代码片段
CSS
:root {
--redsurrection: #d7170f;
--redsurrection-rgb: 215 23 15;
--redsurrection-oklch: oklch(0.559 0.22 29.2);
}
.element {
color: var(--redsurrection);
background-color: hsl(2 87% 45%);
border-color: oklch(0.559 0.22 29.2);
}Tailwind CSS v4
@theme {
--color-redsurrection: #d7170f;
--color-redsurrection-50: #ffdecf;
--color-redsurrection-100: #ffcdbb;
--color-redsurrection-200: #ffaf99;
--color-redsurrection-300: #ff866e;
--color-redsurrection-400: #ff5c4a;
--color-redsurrection-500: #f61f16;
--color-redsurrection-600: #d02017;
--color-redsurrection-700: #a71b12;
--color-redsurrection-800: #7d1010;
--color-redsurrection-900: #590b0a;
--color-redsurrection-950: #3b0001;
}SCSS
$redsurrection: #d7170f;
$redsurrection-rgb: 215, 23, 15;
$redsurrection-light: mix(#fff, $redsurrection, 20%);
$redsurrection-dark: mix(#000, $redsurrection, 20%);
.element {
color: $redsurrection;
box-shadow: 0 0 0 2px rgba($redsurrection, 0.35);
}