#0C511D#0C511D

#0C511D is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.2% C 0.106 H 146.9°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#0C511D
RGBrgb(12, 81, 29)
HSLhsl(135, 74%, 18%)
HSVhsv(135, 85%, 32%)
CMYKcmyk(85.2%, 0%, 64.2%, 68.2%)
CIE-LABlab(29.54, -32.93, 24.42)
CIE-LCHlch(29.54, 40.99, 143.44°)
OKLaboklab(38.17% -0.0886 0.0578)
OKLCHoklch(38.17% 0.106 146.9)
XYZxyz(3.3156, 6.0513, 2.1554)
Luminance0.0605 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C511D #510C40
analogous
#1D510C #0C511D #0C513F
triadic
#0C511D #1D0C51 #511D0C
tetradic
#0C511D #0C1D51 #510C40 #513F0C
square
#0C511D #0C1D51 #510C40 #513F0C
split-complementary
#0C511D #3F0C51 #510C1D
monochromatic
#041B0A #041C0A #0C511D #148630 #1CBC43

Accessibility & contrast

On white

9.50
#0C511D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#0C511D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C511D
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C511D#FFFFFF#000000##FFFFFF
##0C511D1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524918
Deuteranopia (green-blind)
#4A4321
Tritanopia (blue-blind)
#004F46
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c511d;
/* rgb */ color: rgb(12, 81, 29);
/* oklch */ color: oklch(38.2% 0.106 146.9);
Tailwind
colors: {
  custom: {
    50: '#59835b',
    500: '#0c511d',
    950: '#000000',
  },
}
SCSS
$custom: #0c511d;
$custom-light: #59835b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c511d",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 29
  },
  "hsl": {
    "h": 134.783,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38167,
    "c": 0.10577,
    "h": 146.9
  },
  "luminance": 0.06052
}

Semantic roles & 50–950 ramp

primary
#0C511D
secondary
#8C2C75
accent
#37C3F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C511D

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

Preview Lab → · Contrast checker → · Palette generator →

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