#0C5217#0C5217

#0C5217 is a dark, moderate green. Relative luminance 0.062; OKLCH L 38.4% C 0.112 H 145.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#0C5217
RGBrgb(12, 82, 23)
HSLhsl(129, 74%, 18%)
HSVhsv(129, 85%, 32%)
CMYKcmyk(85.4%, 0%, 72%, 67.8%)
CIE-LABlab(29.85, -34.12, 27.85)
CIE-LCHlch(29.85, 44.04, 140.78°)
OKLaboklab(38.4% -0.0921 0.0645)
OKLCHoklch(38.4% 0.112 145)
XYZxyz(3.3233, 6.1742, 1.8270)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5217 #520C47
analogous
#24520C #0C5217 #0C523A
triadic
#0C5217 #170C52 #52170C
tetradic
#0C5217 #0C2452 #520C47 #523A0C
square
#0C5217 #0C2452 #520C47 #523A0C
split-complementary
#0C5217 #3A0C52 #520C24
monochromatic
#041B07 #041D08 #0C5217 #148726 #1CBD35

Accessibility & contrast

On white

9.40
#0C5217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#0C5217 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5217
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5217#FFFFFF#000000##FFFFFF
##0C52171.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544A0F
Deuteranopia (green-blind)
#4C441C
Tritanopia (blue-blind)
#005046
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5217;
/* rgb */ color: rgb(12, 82, 23);
/* oklch */ color: oklch(38.4% 0.112 145.0);
Tailwind
colors: {
  custom: {
    50: '#5a8357',
    500: '#0c5217',
    950: '#000000',
  },
}
SCSS
$custom: #0c5217;
$custom-light: #5a8357;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5217",
  "rgb": {
    "r": 12,
    "g": 82,
    "b": 23
  },
  "hsl": {
    "h": 129.429,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.38399,
    "c": 0.1124,
    "h": 145
  },
  "luminance": 0.06175
}

Semantic roles & 50–950 ramp

primary
#0C5217
secondary
#8D2C7E
accent
#37D4F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #0C5217

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

Preview Lab → · Contrast checker → · Palette generator →

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