#0C1200#0C1200

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

Color values

HEX#0C1200
RGBrgb(12, 18, 0)
HSLhsl(80, 100%, 4%)
HSVhsv(80, 100%, 7%)
CMYKcmyk(33.3%, 0%, 100%, 92.9%)
CIE-LABlab(4.61, -4.82, 6.82)
CIE-LCHlch(4.61, 8.35, 125.23°)
OKLaboklab(16.97% -0.0226 0.0349)
OKLCHoklch(16.97% 0.042 123)
XYZxyz(0.3679, 0.5108, 0.0792)
Luminance0.0051 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1200 #060012
analogous
#120F00 #0C1200 #031200
triadic
#0C1200 #000C12 #12000C
tetradic
#0C1200 #00120F #060012 #120003
square
#0C1200 #00120F #060012 #120003
split-complementary
#0C1200 #000312 #0F0012
monochromatic
#141F00 #141F00 #141F00 #354F00 #5E8C00

Accessibility & contrast

On white

19.05
#0C1200 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1200
19.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1200#FFFFFF#000000##FFFFFF
##0C12001.0019.051.1019.05
#FFFFFF19.051.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141000
Deuteranopia (green-blind)
#131001
Tritanopia (blue-blind)
#0D100D
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #0c1200;
/* rgb */ color: rgb(12, 18, 0);
/* oklch */ color: oklch(17.0% 0.042 123.0);
Tailwind
colors: {
  custom: {
    50: '#4c4f47',
    500: '#0c1200',
    950: '#000000',
  },
}
SCSS
$custom: #0c1200;
$custom-light: #4c4f47;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1200",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 0
  },
  "hsl": {
    "h": 80,
    "s": 100,
    "l": 3.529
  },
  "oklch": {
    "l": 0.16965,
    "c": 0.0416,
    "h": 123
  },
  "luminance": 0.00511
}

Semantic roles & 50–950 ramp

primary
#0C1200
secondary
#2A105D
accent
#29FF70
background
#F4F4F3
surface
#E7E7E5
border
#C3C3C1
text
#010200
muted
#777877

Preview Lab

Preview with #0C1200

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

Preview Lab → · Contrast checker → · Palette generator →

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