#0C510F#0C510F

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

Color values

HEX#0C510F
RGBrgb(12, 81, 15)
HSLhsl(123, 74%, 18%)
HSVhsv(123, 85%, 32%)
CMYKcmyk(85.2%, 0%, 81.5%, 68.2%)
CIE-LABlab(29.41, -34.60, 30.97)
CIE-LCHlch(29.41, 46.43, 138.17°)
OKLaboklab(38.01% -0.0938 0.0699)
OKLCHoklch(38.01% 0.117 143.3)
XYZxyz(3.1801, 5.9971, 1.4418)
Luminance0.0600 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C510F #510C4E
analogous
#2B510C #0C510F #0C5131
triadic
#0C510F #0F0C51 #510F0C
tetradic
#0C510F #0C2B51 #510C4E #51310C
square
#0C510F #0C2B51 #510C4E #51310C
split-complementary
#0C510F #310C51 #510C2B
monochromatic
#041B05 #041C05 #0C510F #148619 #1CBC23

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C510F#FFFFFF#000000##FFFFFF
##0C510F1.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)
#534803
Deuteranopia (green-blind)
#4B4316
Tritanopia (blue-blind)
#004E44
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0c510f;
/* rgb */ color: rgb(12, 81, 15);
/* oklch */ color: oklch(38.0% 0.117 143.3);
Tailwind
colors: {
  custom: {
    50: '#5a8352',
    500: '#0c510f',
    950: '#000000',
  },
}
SCSS
$custom: #0c510f;
$custom-light: #5a8352;
$custom-dark: #000000;
JSON
{
  "hex": "#0c510f",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 15
  },
  "hsl": {
    "h": 122.609,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.3801,
    "c": 0.11695,
    "h": 143.3
  },
  "luminance": 0.05998
}

Semantic roles & 50–950 ramp

primary
#0C510F
secondary
#8C2C88
accent
#37E9F1
background
#F5F8F4
surface
#E9EFE7
border
#C5CAC3
text
#040A02
muted
#797C78

Preview Lab

Preview with #0C510F

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

Preview Lab → · Contrast checker → · Palette generator →

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