#0C1202#0C1202

#0C1202 is a very dark, muted yellow-green. Relative luminance 0.005; OKLCH L 17.0% C 0.036 H 124.7°. Best body text is #FFFFFF at 19.04:1 contrast (WCAG AA passes).

Color values

HEX#0C1202
RGBrgb(12, 18, 2)
HSLhsl(83, 80%, 4%)
HSVhsv(83, 89%, 7%)
CMYKcmyk(33.3%, 0%, 88.9%, 92.9%)
CIE-LABlab(4.65, -4.54, 6.07)
CIE-LCHlch(4.65, 7.58, 126.80°)
OKLaboklab(17.03% -0.0203 0.0294)
OKLCHoklch(17.03% 0.036 124.7)
XYZxyz(0.3789, 0.5152, 0.1369)
Luminance0.0052 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1202 #080212
analogous
#121002 #0C1202 #041202
triadic
#0C1202 #020C12 #12020C
tetradic
#0C1202 #021210 #080212 #120204
square
#0C1202 #021210 #080212 #120204
split-complementary
#0C1202 #020412 #100212
monochromatic
#121C03 #121C03 #121C03 #314908 #55800E

Accessibility & contrast

On white

19.04
#0C1202 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#0C1202 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1202
19.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1202#FFFFFF#000000##FFFFFF
##0C12021.0019.041.1019.04
#FFFFFF19.041.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141001
Deuteranopia (green-blind)
#131003
Tritanopia (blue-blind)
#0D110E
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #0c1202;
/* rgb */ color: rgb(12, 18, 2);
/* oklch */ color: oklch(17.0% 0.036 124.7);
Tailwind
colors: {
  custom: {
    50: '#4c4f47',
    500: '#0c1202',
    950: '#000000',
  },
}
SCSS
$custom: #0c1202;
$custom-light: #4c4f47;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1202",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 2
  },
  "hsl": {
    "h": 82.5,
    "s": 80,
    "l": 3.922
  },
  "oklch": {
    "l": 0.17029,
    "c": 0.03579,
    "h": 124.7
  },
  "luminance": 0.00515
}

Semantic roles & 50–950 ramp

primary
#0C1202
secondary
#301957
accent
#31F67B
background
#F4F4F4
surface
#E7E7E6
border
#C3C3C2
text
#010200
muted
#777877

Preview Lab

Preview with #0C1202

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#0C1202 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva