Nearest named color · #071C02
#071C02
Nearest named color: Nightmare
#071C02 (rgb(7 28 2), hsl(108 87% 6%), oklch(0.201 0.057 138.7)) is closest to the named color Nightmare. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.
#071C02
oklch(0.201 0.057 138.7)
Color conversions
- HEX
- #071c02
- RGB
- rgb(7 28 2)
- HSL
- hsl(108 87% 6%)
- HWB
- hwb(108 1% 89%)
- OKLCH
- oklch(0.201 0.057 138.7)
- OKLab
- oklab(0.201 -0.043 0.038)
- CIE Lab
- lab(7.98 -12.25 10.76)
- LCH
- lch(7.98 16.3 138.7)
- CMYK
- cmyk(75% 0% 93% 89%)
Tints · Shades · Tones
Tints
- 1C2F16
- 31432C
- 485843
- 5F6E5B
- 788574
- 929C8F
- ACB4AA
- C7CCC5
- E3E5E2
Shades
- 051701
- 041201
- 020D01
- 020800
- 010500
- 000200
- 000100
- 000000
- 000000
Tones
- 12250C
- 1D2E18
- 293824
- 344230
- 404C3D
- 4C564A
- 596057
- 666B64
- 737572
Color harmonies
Complementary +180°
- 071C02
Nightmare
- 210C27
≈ Meški Black
Analogous -30° +30°
- 071C02
Nightmare
- 181800
≈ Pinch of Pepper
- 001C13
≈ Pinch of Pepper
Triadic +120° +240°
- 071C02
Nightmare
- 051630
≈ Squid’s Ink
- 2B090C
≈ Root Brew
Split-complementary +150° +210°
- 071C02
Nightmare
- 16112E
≈ Spanish Roast
- 28091A
≈ Meški Black
Tetradic +90° +180° +270°
- 071C02
Nightmare
- 001924
≈ Creeping Death
- 210C27
≈ Meški Black
- 290D00
≈ Root Brew
Contrast & accessibility
Ag
AAAOn white
WCAG 17.85:1 · APCA Lc 104
Ag
FailOn black
WCAG 1.17:1 · APCA Lc 0
Best text color: #FFFFFF
WCAG 17.85:1 (AAA) · APCA Lc 104
Contrast pairs
Code snippets
CSS
:root {
--nightmare: #071c02;
--nightmare-rgb: 7 28 2;
--nightmare-oklch: oklch(0.201 0.057 138.7);
}
.element {
color: var(--nightmare);
background-color: hsl(108 87% 6%);
border-color: oklch(0.201 0.057 138.7);
}Tailwind CSS v4
@theme {
--color-nightmare: #071c02;
--color-nightmare-50: #edfaea;
--color-nightmare-100: #deeddb;
--color-nightmare-200: #c8dbc4;
--color-nightmare-300: #a8bfa4;
--color-nightmare-400: #8ea787;
--color-nightmare-500: #73906b;
--color-nightmare-600: #62795b;
--color-nightmare-700: #4e6148;
--color-nightmare-800: #394734;
--color-nightmare-900: #273123;
--color-nightmare-950: #151d12;
}SCSS
$nightmare: #071c02;
$nightmare-rgb: 7, 28, 2;
$nightmare-light: mix(#fff, $nightmare, 20%);
$nightmare-dark: mix(#000, $nightmare, 20%);
.element {
color: $nightmare;
box-shadow: 0 0 0 2px rgba($nightmare, 0.35);
}