#0C510D#0C510D

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

Color values

HEX#0C510D
RGBrgb(12, 81, 13)
HSLhsl(121, 74%, 18%)
HSVhsv(121, 85%, 32%)
CMYKcmyk(85.2%, 0%, 84%, 68.2%)
CIE-LABlab(29.39, -34.77, 31.74)
CIE-LCHlch(29.39, 47.08, 137.61°)
OKLaboklab(37.99% -0.0943 0.0712)
OKLCHoklch(37.99% 0.118 142.9)
XYZxyz(3.1665, 5.9917, 1.3703)
Luminance0.0599 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C510D #510C50
analogous
#2D510C #0C510D #0C512F
triadic
#0C510D #0D0C51 #510D0C
tetradic
#0C510D #0C2D51 #510C50 #512F0C
square
#0C510D #0C2D51 #510C50 #512F0C
split-complementary
#0C510D #2F0C51 #510C2D
monochromatic
#041B04 #041C04 #0C510D #148616 #1CBC1E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C510D#FFFFFF#000000##FFFFFF
##0C510D1.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)
#534801
Deuteranopia (green-blind)
#4B4315
Tritanopia (blue-blind)
#004E44
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0c510d;
/* rgb */ color: rgb(12, 81, 13);
/* oklch */ color: oklch(38.0% 0.118 142.9);
Tailwind
colors: {
  custom: {
    50: '#5a8351',
    500: '#0c510d',
    950: '#000000',
  },
}
SCSS
$custom: #0c510d;
$custom-light: #5a8351;
$custom-dark: #000000;
JSON
{
  "hex": "#0c510d",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 13
  },
  "hsl": {
    "h": 120.87,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.37994,
    "c": 0.11819,
    "h": 142.9
  },
  "luminance": 0.05992
}

Semantic roles & 50–950 ramp

primary
#0C510D
secondary
#8C2C8B
accent
#37EEF1
background
#F5F8F4
surface
#E9EFE7
border
#C5CAC3
text
#040A02
muted
#797C78

Preview Lab

Preview with #0C510D

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

Preview Lab → · Contrast checker → · Palette generator →

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