#0C5F20#0C5F20

#0C5F20 is a dark, vivid green. Relative luminance 0.084; OKLCH L 42.5% C 0.122 H 146.3°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#0C5F20
RGBrgb(12, 95, 32)
HSLhsl(134, 78%, 21%)
HSVhsv(134, 87%, 37%)
CMYKcmyk(87.4%, 0%, 66.3%, 62.7%)
CIE-LABlab(34.73, -37.74, 28.84)
CIE-LCHlch(34.73, 47.50, 142.62°)
OKLaboklab(42.49% -0.1015 0.0676)
OKLCHoklch(42.49% 0.122 146.3)
XYZxyz(4.5042, 8.3663, 2.7437)
Luminance0.0837 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5F20 #5F0C4B
analogous
#215F0C #0C5F20 #0C5F49
triadic
#0C5F20 #200C5F #5F200C
tetradic
#0C5F20 #0C215F #5F0C4B #5F490C
square
#0C5F20 #0C215F #5F0C4B #5F490C
split-complementary
#0C5F20 #490C5F #5F0C21
monochromatic
#031B09 #05290E #0C5F20 #139532 #1ACC45

Accessibility & contrast

On white

7.86
#0C5F20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#0C5F20 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5F20
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5F20#FFFFFF#000000##FFFFFF
##0C5F201.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#605519
Deuteranopia (green-blind)
#584F25
Tritanopia (blue-blind)
#005D52
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #0c5f20;
/* rgb */ color: rgb(12, 95, 32);
/* oklch */ color: oklch(42.5% 0.122 146.3);
Tailwind
colors: {
  custom: {
    50: '#5d8d5e',
    500: '#0c5f20',
    950: '#000000',
  },
}
SCSS
$custom: #0c5f20;
$custom-light: #5d8d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5f20",
  "rgb": {
    "r": 12,
    "g": 95,
    "b": 32
  },
  "hsl": {
    "h": 134.458,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42489,
    "c": 0.12198,
    "h": 146.3
  },
  "luminance": 0.08367
}

Semantic roles & 50–950 ramp

primary
#0C5F20
secondary
#992D7F
accent
#34C6F4
background
#F5F8F5
surface
#EAF0E9
border
#C6CBC5
text
#050C04
muted
#797D79

Preview Lab

Preview with #0C5F20

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

Preview Lab → · Contrast checker → · Palette generator →

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