#0C4020#0C4020

#0C4020 is a dark, moderate green. Relative luminance 0.038; OKLCH L 32.9% C 0.077 H 151.8°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#0C4020
RGBrgb(12, 64, 32)
HSLhsl(143, 68%, 15%)
HSVhsv(143, 81%, 25%)
CMYKcmyk(81.2%, 0%, 50%, 74.9%)
CIE-LABlab(23.17, -25.35, 14.84)
CIE-LCHlch(23.17, 29.37, 149.66°)
OKLaboklab(32.9% -0.0683 0.0366)
OKLCHoklch(32.9% 0.077 151.8)
XYZxyz(2.2455, 3.8490, 1.9908)
Luminance0.0385 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4020 #400C2C
analogous
#12400C #0C4020 #0C403A
triadic
#0C4020 #200C40 #40200C
tetradic
#0C4020 #0C1240 #400C2C #403A0C
square
#0C4020 #0C1240 #400C2C #403A0C
split-complementary
#0C4020 #3A0C40 #400C12
monochromatic
#051A0D #051A0D #0C4020 #16743A #1FA754

Accessibility & contrast

On white

11.87
#0C4020 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#0C4020 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4020
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4020#FFFFFF#000000##FFFFFF
##0C40201.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403A1E
Deuteranopia (green-blind)
#3A3522
Tritanopia (blue-blind)
#003F38
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #0c4020;
/* rgb */ color: rgb(12, 64, 32);
/* oklch */ color: oklch(32.9% 0.077 151.8);
Tailwind
colors: {
  custom: {
    50: '#54755c',
    500: '#0c4020',
    950: '#000000',
  },
}
SCSS
$custom: #0c4020;
$custom-light: #54755c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4020",
  "rgb": {
    "r": 12,
    "g": 64,
    "b": 32
  },
  "hsl": {
    "h": 143.077,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.32904,
    "c": 0.07744,
    "h": 151.8
  },
  "luminance": 0.03849
}

Semantic roles & 50–950 ramp

primary
#0C4020
secondary
#7C2C5D
accent
#3DA8EB
background
#F5F7F5
surface
#E9EDE9
border
#C5C8C5
text
#030804
muted
#787B79

Preview Lab

Preview with #0C4020

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

Preview Lab → · Contrast checker → · Palette generator →

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