#0C511A#0C511A

#0C511A is a dark, moderate green. Relative luminance 0.060; OKLCH L 38.1% C 0.108 H 145.9°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#0C511A
RGBrgb(12, 81, 26)
HSLhsl(132, 74%, 18%)
HSVhsv(132, 85%, 32%)
CMYKcmyk(85.2%, 0%, 67.9%, 68.2%)
CIE-LABlab(29.51, -33.36, 25.96)
CIE-LCHlch(29.51, 42.27, 142.11°)
OKLaboklab(38.13% -0.0899 0.0608)
OKLCHoklch(38.13% 0.109 145.9)
XYZxyz(3.2803, 6.0372, 1.9695)
Luminance0.0604 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C511A #510C43
analogous
#20510C #0C511A #0C513C
triadic
#0C511A #1A0C51 #511A0C
tetradic
#0C511A #0C2051 #510C43 #513C0C
square
#0C511A #0C2051 #510C43 #513C0C
split-complementary
#0C511A #3C0C51 #510C20
monochromatic
#041B09 #041C09 #0C511A #14862B #1CBC3C

Accessibility & contrast

On white

9.51
#0C511A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C511A
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C511A#FFFFFF#000000##FFFFFF
##0C511A1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524914
Deuteranopia (green-blind)
#4B431F
Tritanopia (blue-blind)
#004F45
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c511a;
/* rgb */ color: rgb(12, 81, 26);
/* oklch */ color: oklch(38.1% 0.108 145.9);
Tailwind
colors: {
  custom: {
    50: '#598359',
    500: '#0c511a',
    950: '#000000',
  },
}
SCSS
$custom: #0c511a;
$custom-light: #598359;
$custom-dark: #000000;
JSON
{
  "hex": "#0c511a",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 26
  },
  "hsl": {
    "h": 132.174,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38126,
    "c": 0.1085,
    "h": 145.9
  },
  "luminance": 0.06038
}

Semantic roles & 50–950 ramp

primary
#0C511A
secondary
#8C2C79
accent
#37CBF1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C511A

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

Preview Lab → · Contrast checker → · Palette generator →

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