#0C4A12#0C4A12

#0C4A12 is a dark, moderate green. Relative luminance 0.050; OKLCH L 35.8% C 0.106 H 144.2°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#0C4A12
RGBrgb(12, 74, 18)
HSLhsl(126, 72%, 17%)
HSVhsv(126, 84%, 29%)
CMYKcmyk(83.8%, 0%, 75.7%, 71%)
CIE-LABlab(26.79, -31.70, 26.94)
CIE-LCHlch(26.79, 41.60, 139.64°)
OKLaboklab(35.84% -0.0857 0.0619)
OKLCHoklch(35.84% 0.106 144.2)
XYZxyz(2.7094, 5.0191, 1.3981)
Luminance0.0502 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4A12 #4A0C44
analogous
#254A0C #0C4A12 #0C4A31
triadic
#0C4A12 #120C4A #4A120C
tetradic
#0C4A12 #0C254A #4A0C44 #4A310C
square
#0C4A12 #0C254A #4A0C44 #4A310C
split-complementary
#0C4A12 #310C4A #4A0C25
monochromatic
#041A06 #041A06 #0C4A12 #157F1F #1DB32C

Accessibility & contrast

On white

10.48
#0C4A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#0C4A12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4A12
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4A12#FFFFFF#000000##FFFFFF
##0C4A121.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C420A
Deuteranopia (green-blind)
#453D17
Tritanopia (blue-blind)
#00483F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #0c4a12;
/* rgb */ color: rgb(12, 74, 18);
/* oklch */ color: oklch(35.8% 0.106 144.2);
Tailwind
colors: {
  custom: {
    50: '#577d53',
    500: '#0c4a12',
    950: '#000000',
  },
}
SCSS
$custom: #0c4a12;
$custom-light: #577d53;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4a12",
  "rgb": {
    "r": 12,
    "g": 74,
    "b": 18
  },
  "hsl": {
    "h": 125.806,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.35843,
    "c": 0.10574,
    "h": 144.2
  },
  "luminance": 0.05019
}

Semantic roles & 50–950 ramp

primary
#0C4A12
secondary
#862C7D
accent
#39DDEF
background
#F5F7F4
surface
#E9EEE7
border
#C5C9C3
text
#040A02
muted
#797C78

Preview Lab

Preview with #0C4A12

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

Preview Lab → · Contrast checker → · Palette generator →

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