#0C5216#0C5216

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

Color values

HEX#0C5216
RGBrgb(12, 82, 22)
HSLhsl(129, 74%, 18%)
HSVhsv(129, 85%, 32%)
CMYKcmyk(85.4%, 0%, 73.2%, 67.8%)
CIE-LABlab(29.84, -34.24, 28.32)
CIE-LCHlch(29.84, 44.43, 140.41°)
OKLaboklab(38.39% -0.0924 0.0654)
OKLCHoklch(38.39% 0.113 144.7)
XYZxyz(3.3135, 6.1703, 1.7753)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5216 #520C48
analogous
#25520C #0C5216 #0C5239
triadic
#0C5216 #160C52 #52160C
tetradic
#0C5216 #0C2552 #520C48 #52390C
square
#0C5216 #0C2552 #520C48 #52390C
split-complementary
#0C5216 #390C52 #520C25
monochromatic
#041B07 #041D08 #0C5216 #148724 #1CBD33

Accessibility & contrast

On white

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

On black

2.23
#0C5216 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##0C5216#FFFFFF#000000##FFFFFF
##0C52161.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c5216;
/* rgb */ color: rgb(12, 82, 22);
/* oklch */ color: oklch(38.4% 0.113 144.7);
Tailwind
colors: {
  custom: {
    50: '#5a8356',
    500: '#0c5216',
    950: '#000000',
  },
}
SCSS
$custom: #0c5216;
$custom-light: #5a8356;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5216",
  "rgb": {
    "r": 12,
    "g": 82,
    "b": 22
  },
  "hsl": {
    "h": 128.571,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.38388,
    "c": 0.1132,
    "h": 144.7
  },
  "luminance": 0.06171
}

Semantic roles & 50–950 ramp

primary
#0C5216
secondary
#8D2C7F
accent
#37D6F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #0C5216

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

Preview Lab → · Contrast checker → · Palette generator →

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