#0C4D20#0C4D20

#0C4D20 is a dark, moderate green. Relative luminance 0.055; OKLCH L 37.0% C 0.097 H 148.6°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#0C4D20
RGBrgb(12, 77, 32)
HSLhsl(138, 73%, 17%)
HSVhsv(138, 84%, 30%)
CMYKcmyk(84.4%, 0%, 58.4%, 69.8%)
CIE-LABlab(28.09, -30.86, 21.01)
CIE-LCHlch(28.09, 37.34, 145.75°)
OKLaboklab(36.97% -0.0829 0.0506)
OKLCHoklch(36.97% 0.097 148.6)
XYZxyz(3.0660, 5.4898, 2.2643)
Luminance0.0549 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4D20 #4D0C39
analogous
#184D0C #0C4D20 #0C4D41
triadic
#0C4D20 #200C4D #4D200C
tetradic
#0C4D20 #0C184D #4D0C39 #4D410C
square
#0C4D20 #0C184D #4D0C39 #4D410C
split-complementary
#0C4D20 #410C4D #4D0C18
monochromatic
#041A0B #041A0B #0C4D20 #148236 #1DB74C

Accessibility & contrast

On white

10.01
#0C4D20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#0C4D20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4D20
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4D20#FFFFFF#000000##FFFFFF
##0C4D201.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E451C
Deuteranopia (green-blind)
#464023
Tritanopia (blue-blind)
#004B43
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #0c4d20;
/* rgb */ color: rgb(12, 77, 32);
/* oklch */ color: oklch(37.0% 0.097 148.6);
Tailwind
colors: {
  custom: {
    50: '#587f5c',
    500: '#0c4d20',
    950: '#000000',
  },
}
SCSS
$custom: #0c4d20;
$custom-light: #587f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4d20",
  "rgb": {
    "r": 12,
    "g": 77,
    "b": 32
  },
  "hsl": {
    "h": 138.462,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36974,
    "c": 0.09714,
    "h": 148.6
  },
  "luminance": 0.0549
}

Semantic roles & 50–950 ramp

primary
#0C4D20
secondary
#892C6C
accent
#38B7F0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C4D20

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

Preview Lab → · Contrast checker → · Palette generator →

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