#0C1902#0C1902

#0C1902 is a very dark, muted yellow-green. Relative luminance 0.008; OKLCH L 19.4% C 0.048 H 132.3°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#0C1902
RGBrgb(12, 25, 2)
HSLhsl(94, 85%, 5%)
HSVhsv(94, 92%, 10%)
CMYKcmyk(52%, 0%, 92%, 90.2%)
CIE-LABlab(7.03, -9.38, 9.53)
CIE-LCHlch(7.03, 13.37, 134.56°)
OKLaboklab(19.43% -0.0325 0.0357)
OKLCHoklch(19.43% 0.048 132.3)
XYZxyz(0.5102, 0.7778, 0.1807)
Luminance0.0078 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1902 #0F0219
analogous
#171902 #0C1902 #021903
triadic
#0C1902 #020C19 #19020C
tetradic
#0C1902 #021719 #0F0219 #190302
square
#0C1902 #021719 #0F0219 #190302
split-complementary
#0C1902 #030219 #190217
monochromatic
#0E1C02 #0E1C02 #0E1C02 #275207 #428A0B

Accessibility & contrast

On white

18.17
#0C1902 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1902
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1902#FFFFFF#000000##FFFFFF
##0C19021.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c1902;
/* rgb */ color: rgb(12, 25, 2);
/* oklch */ color: oklch(19.4% 0.048 132.3);
Tailwind
colors: {
  custom: {
    50: '#4c5547',
    500: '#0c1902',
    950: '#000000',
  },
}
SCSS
$custom: #0c1902;
$custom-light: #4c5547;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1902",
  "rgb": {
    "r": 12,
    "g": 25,
    "b": 2
  },
  "hsl": {
    "h": 93.913,
    "s": 85.185,
    "l": 5.294
  },
  "oklch": {
    "l": 0.19426,
    "c": 0.04828,
    "h": 132.3
  },
  "luminance": 0.00778
}

Semantic roles & 50–950 ramp

primary
#0C1902
secondary
#40185F
accent
#2CFBA1
background
#F4F4F4
surface
#E7E7E6
border
#C3C3C2
text
#010300
muted
#777877

Preview Lab

Preview with #0C1902

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

Preview Lab → · Contrast checker → · Palette generator →

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