#0C510E#0C510E

#0C510E is a dark, moderate green. Relative luminance 0.060; OKLCH L 38.0% C 0.118 H 143.1°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#0C510E
RGBrgb(12, 81, 14)
HSLhsl(122, 74%, 18%)
HSVhsv(122, 85%, 32%)
CMYKcmyk(85.2%, 0%, 82.7%, 68.2%)
CIE-LABlab(29.40, -34.69, 31.36)
CIE-LCHlch(29.40, 46.76, 137.88°)
OKLaboklab(38% -0.094 0.0706)
OKLCHoklch(38% 0.118 143.1)
XYZxyz(3.1731, 5.9944, 1.4052)
Luminance0.0600 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C510E #510C4F
analogous
#2C510C #0C510E #0C5130
triadic
#0C510E #0E0C51 #510E0C
tetradic
#0C510E #0C2C51 #510C4F #51300C
square
#0C510E #0C2C51 #510C4F #51300C
split-complementary
#0C510E #300C51 #510C2C
monochromatic
#041B05 #041C05 #0C510E #148617 #1CBC20

Accessibility & contrast

On white

9.55
#0C510E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#0C510E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C510E
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C510E#FFFFFF#000000##FFFFFF
##0C510E1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534802
Deuteranopia (green-blind)
#4B4315
Tritanopia (blue-blind)
#004E44
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0c510e;
/* rgb */ color: rgb(12, 81, 14);
/* oklch */ color: oklch(38.0% 0.118 143.1);
Tailwind
colors: {
  custom: {
    50: '#5a8352',
    500: '#0c510e',
    950: '#000000',
  },
}
SCSS
$custom: #0c510e;
$custom-light: #5a8352;
$custom-dark: #000000;
JSON
{
  "hex": "#0c510e",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 14
  },
  "hsl": {
    "h": 121.739,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38001,
    "c": 0.11758,
    "h": 143.1
  },
  "luminance": 0.05995
}

Semantic roles & 50–950 ramp

primary
#0C510E
secondary
#8C2C8A
accent
#37EBF1
background
#F5F8F4
surface
#E9EFE7
border
#C5CAC3
text
#040A02
muted
#797C78

Preview Lab

Preview with #0C510E

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

Preview Lab → · Contrast checker → · Palette generator →

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