#0C510C#0C510C

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

Color values

HEX#0C510C
RGBrgb(12, 81, 12)
HSLhsl(120, 74%, 18%)
HSVhsv(120, 85%, 32%)
CMYKcmyk(85.2%, 0%, 85.2%, 68.2%)
CIE-LABlab(29.39, -34.85, 32.11)
CIE-LCHlch(29.39, 47.38, 137.34°)
OKLaboklab(37.99% -0.0946 0.0718)
OKLCHoklch(37.99% 0.119 142.8)
XYZxyz(3.1602, 5.9892, 1.3372)
Luminance0.0599 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C510C #510C51
analogous
#2E510C #0C510C #0C512E
triadic
#0C510C #0C0C51 #510C0C
tetradic
#0C510C #0C2E51 #510C51 #512E0C
square
#0C510C #0C2E51 #510C51 #512E0C
split-complementary
#0C510C #2E0C51 #510C2E
monochromatic
#041B04 #041C04 #0C510C #148614 #1CBC1C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C510C#FFFFFF#000000##FFFFFF
##0C510C1.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)
#534800
Deuteranopia (green-blind)
#4C4314
Tritanopia (blue-blind)
#004E44
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0c510c;
/* rgb */ color: rgb(12, 81, 12);
/* oklch */ color: oklch(38.0% 0.119 142.8);
Tailwind
colors: {
  custom: {
    50: '#5a8351',
    500: '#0c510c',
    950: '#000000',
  },
}
SCSS
$custom: #0c510c;
$custom-light: #5a8351;
$custom-dark: #000000;
JSON
{
  "hex": "#0c510c",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 120,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.37986,
    "c": 0.11876,
    "h": 142.8
  },
  "luminance": 0.0599
}

Semantic roles & 50–950 ramp

primary
#0C510C
secondary
#8C2C8C
accent
#37F1F1
background
#F5F8F4
surface
#E9EFE7
border
#C5CAC3
text
#040A02
muted
#797C78

Preview Lab

Preview with #0C510C

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

Preview Lab → · Contrast checker → · Palette generator →

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