#0C1904#0C1904

#0C1904 is a very dark, muted yellow-green. Relative luminance 0.008; OKLCH L 19.5% C 0.044 H 134.1°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#0C1904
RGBrgb(12, 25, 4)
HSLhsl(97, 72%, 6%)
HSVhsv(97, 84%, 10%)
CMYKcmyk(52%, 0%, 84%, 90.2%)
CIE-LABlab(7.07, -9.10, 8.77)
CIE-LCHlch(7.07, 12.64, 136.07°)
OKLaboklab(19.48% -0.0309 0.0318)
OKLCHoklch(19.48% 0.044 134.1)
XYZxyz(0.5212, 0.7822, 0.2384)
Luminance0.0078 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1904 #110419
analogous
#161904 #0C1904 #041906
triadic
#0C1904 #040C19 #19040C
tetradic
#0C1904 #041619 #110419 #190604
square
#0C1904 #041619 #110419 #190604
split-complementary
#0C1904 #060419 #190416
monochromatic
#0D1A04 #0D1A04 #0D1A04 #254E0C #3F8315

Accessibility & contrast

On white

18.16
#0C1904 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0C1904 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1904
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1904#FFFFFF#000000##FFFFFF
##0C19041.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A1603
Deuteranopia (green-blind)
#191505
Tritanopia (blue-blind)
#0C1814
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c1904;
/* rgb */ color: rgb(12, 25, 4);
/* oklch */ color: oklch(19.5% 0.044 134.1);
Tailwind
colors: {
  custom: {
    50: '#4c5548',
    500: '#0c1904',
    950: '#000000',
  },
}
SCSS
$custom: #0c1904;
$custom-light: #4c5548;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1904",
  "rgb": {
    "r": 12,
    "g": 25,
    "b": 4
  },
  "hsl": {
    "h": 97.143,
    "s": 72.414,
    "l": 5.686
  },
  "oklch": {
    "l": 0.19475,
    "c": 0.04433,
    "h": 134.1
  },
  "luminance": 0.00782
}

Semantic roles & 50–950 ramp

primary
#0C1904
secondary
#441E5B
accent
#39EFAA
background
#F4F4F4
surface
#E7E7E6
border
#C3C3C2
text
#010300
muted
#777877

Preview Lab

Preview with #0C1904

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

Preview Lab → · Contrast checker → · Palette generator →

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