#0C5219#0C5219

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

Color values

HEX#0C5219
RGBrgb(12, 82, 25)
HSLhsl(131, 74%, 18%)
HSVhsv(131, 85%, 32%)
CMYKcmyk(85.4%, 0%, 69.5%, 67.8%)
CIE-LABlab(29.87, -33.87, 26.88)
CIE-LCHlch(29.87, 43.24, 141.57°)
OKLaboklab(38.42% -0.0913 0.0627)
OKLCHoklch(38.42% 0.111 145.5)
XYZxyz(3.3441, 6.1825, 1.9366)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5219 #520C45
analogous
#22520C #0C5219 #0C523C
triadic
#0C5219 #190C52 #52190C
tetradic
#0C5219 #0C2252 #520C45 #523C0C
square
#0C5219 #0C2252 #520C45 #523C0C
split-complementary
#0C5219 #3C0C52 #520C22
monochromatic
#041B08 #041D09 #0C5219 #148729 #1CBD3A

Accessibility & contrast

On white

9.39
#0C5219 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C5219
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5219#FFFFFF#000000##FFFFFF
##0C52191.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#534A12
Deuteranopia (green-blind)
#4C441E
Tritanopia (blue-blind)
#005046
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5219;
/* rgb */ color: rgb(12, 82, 25);
/* oklch */ color: oklch(38.4% 0.111 145.5);
Tailwind
colors: {
  custom: {
    50: '#598358',
    500: '#0c5219',
    950: '#000000',
  },
}
SCSS
$custom: #0c5219;
$custom-light: #598358;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5219",
  "rgb": {
    "r": 12,
    "g": 82,
    "b": 25
  },
  "hsl": {
    "h": 131.143,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.38423,
    "c": 0.11073,
    "h": 145.5
  },
  "luminance": 0.06183
}

Semantic roles & 50–950 ramp

primary
#0C5219
secondary
#8D2C7B
accent
#37CEF1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #0C5219

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

Preview Lab → · Contrast checker → · Palette generator →

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