#0C571B#0C571B

#0C571B is a dark, moderate green. Relative luminance 0.070; OKLCH L 40.0% C 0.116 H 145.7°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#0C571B
RGBrgb(12, 87, 27)
HSLhsl(132, 76%, 19%)
HSVhsv(132, 86%, 34%)
CMYKcmyk(86.2%, 0%, 69%, 65.9%)
CIE-LABlab(31.75, -35.47, 27.97)
CIE-LCHlch(31.75, 45.18, 141.74°)
OKLaboklab(39.99% -0.0956 0.0652)
OKLCHoklch(39.99% 0.116 145.7)
XYZxyz(3.7574, 6.9732, 2.1846)
Luminance0.0697 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C571B #570C48
analogous
#23570C #0C571B #0C5741
triadic
#0C571B #1B0C57 #571B0C
tetradic
#0C571B #0C2357 #570C48 #57410C
square
#0C571B #0C2357 #570C48 #57410C
split-complementary
#0C571B #410C57 #570C23
monochromatic
#041B08 #05210A #0C571B #138D2C #1BC33C

Accessibility & contrast

On white

8.77
#0C571B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#0C571B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C571B
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C571B#FFFFFF#000000##FFFFFF
##0C571B1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E14
Deuteranopia (green-blind)
#504820
Tritanopia (blue-blind)
#00554A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #0c571b;
/* rgb */ color: rgb(12, 87, 27);
/* oklch */ color: oklch(40.0% 0.116 145.7);
Tailwind
colors: {
  custom: {
    50: '#5b875a',
    500: '#0c571b',
    950: '#000000',
  },
}
SCSS
$custom: #0c571b;
$custom-light: #5b875a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c571b",
  "rgb": {
    "r": 12,
    "g": 87,
    "b": 27
  },
  "hsl": {
    "h": 132,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.39989,
    "c": 0.1157,
    "h": 145.7
  },
  "luminance": 0.06974
}

Semantic roles & 50–950 ramp

primary
#0C571B
secondary
#922D7E
accent
#35CDF2
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#040B04
muted
#797C79

Preview Lab

Preview with #0C571B

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

Preview Lab → · Contrast checker → · Palette generator →

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