#0C5218#0C5218

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

Color values

HEX#0C5218
RGBrgb(12, 82, 24)
HSLhsl(130, 74%, 18%)
HSVhsv(130, 85%, 32%)
CMYKcmyk(85.4%, 0%, 70.7%, 67.8%)
CIE-LABlab(29.86, -34.00, 27.37)
CIE-LCHlch(29.86, 43.64, 141.17°)
OKLaboklab(38.41% -0.0917 0.0636)
OKLCHoklch(38.41% 0.112 145.3)
XYZxyz(3.3335, 6.1783, 1.8808)
Luminance0.0618 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5218 #520C46
analogous
#23520C #0C5218 #0C523B
triadic
#0C5218 #180C52 #52180C
tetradic
#0C5218 #0C2352 #520C46 #523B0C
square
#0C5218 #0C2352 #520C46 #523B0C
split-complementary
#0C5218 #3B0C52 #520C23
monochromatic
#041B08 #041D08 #0C5218 #148728 #1CBD37

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C5218#FFFFFF#000000##FFFFFF
##0C52181.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)
#534A11
Deuteranopia (green-blind)
#4C441D
Tritanopia (blue-blind)
#005046
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5218;
/* rgb */ color: rgb(12, 82, 24);
/* oklch */ color: oklch(38.4% 0.112 145.3);
Tailwind
colors: {
  custom: {
    50: '#598358',
    500: '#0c5218',
    950: '#000000',
  },
}
SCSS
$custom: #0c5218;
$custom-light: #598358;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5218",
  "rgb": {
    "r": 12,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 130.286,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.38411,
    "c": 0.11157,
    "h": 145.3
  },
  "luminance": 0.06179
}

Semantic roles & 50–950 ramp

primary
#0C5218
secondary
#8D2C7D
accent
#37D1F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #0C5218

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

Preview Lab → · Contrast checker → · Palette generator →

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