#0C1002#0C1002

#0C1002 is a very dark, muted yellow-green. Relative luminance 0.005; OKLCH L 16.4% C 0.032 H 120.9°. Best body text is #FFFFFF at 19.26:1 contrast (WCAG AA passes).

Color values

HEX#0C1002
RGBrgb(12, 16, 2)
HSLhsl(77, 78%, 4%)
HSVhsv(77, 88%, 6%)
CMYKcmyk(25%, 0%, 87.5%, 93.7%)
CIE-LABlab(4.09, -3.39, 5.25)
CIE-LCHlch(4.09, 6.25, 122.87°)
OKLaboklab(16.35% -0.0165 0.0276)
OKLCHoklch(16.35% 0.032 120.9)
XYZxyz(0.3479, 0.4531, 0.1266)
Luminance0.0045 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1002 #060210
analogous
#100D02 #0C1002 #051002
triadic
#0C1002 #020C10 #10020C
tetradic
#0C1002 #02100D #060210 #100205
square
#0C1002 #02100D #060210 #100205
split-complementary
#0C1002 #020510 #0D0210
monochromatic
#141B03 #141B03 #141B03 #354609 #5E7D10

Accessibility & contrast

On white

19.26
#0C1002 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#0C1002 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1002
19.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1002#FFFFFF#000000##FFFFFF
##0C10021.0019.261.0919.26
#FFFFFF19.261.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#120E01
Deuteranopia (green-blind)
#110E03
Tritanopia (blue-blind)
#0D0F0C
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0c1002;
/* rgb */ color: rgb(12, 16, 2);
/* oklch */ color: oklch(16.4% 0.032 120.9);
Tailwind
colors: {
  custom: {
    50: '#4c4e47',
    500: '#0c1002',
    950: '#000000',
  },
}
SCSS
$custom: #0c1002;
$custom-light: #4c4e47;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1002",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 2
  },
  "hsl": {
    "h": 77.143,
    "s": 77.778,
    "l": 3.529
  },
  "oklch": {
    "l": 0.16353,
    "c": 0.03213,
    "h": 120.9
  },
  "luminance": 0.00453
}

Semantic roles & 50–950 ramp

primary
#0C1002
secondary
#2A1955
accent
#34F46B
background
#F4F4F4
surface
#E7E7E6
border
#C3C3C2
text
#010100
muted
#777777

Preview Lab

Preview with #0C1002

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

Preview Lab → · Contrast checker → · Palette generator →

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