#0C5019#0C5019

#0C5019 is a dark, moderate green. Relative luminance 0.059; OKLCH L 37.8% C 0.108 H 145.7°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#0C5019
RGBrgb(12, 80, 25)
HSLhsl(131, 74%, 18%)
HSVhsv(131, 85%, 31%)
CMYKcmyk(85%, 0%, 68.8%, 68.6%)
CIE-LABlab(29.12, -33.11, 26.04)
CIE-LCHlch(29.12, 42.12, 141.82°)
OKLaboklab(37.8% -0.0892 0.0609)
OKLCHoklch(37.8% 0.108 145.7)
XYZxyz(3.1955, 5.8853, 1.8871)
Luminance0.0589 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5019 #500C43
analogous
#21500C #0C5019 #0C503B
triadic
#0C5019 #190C50 #50190C
tetradic
#0C5019 #0C2150 #500C43 #503B0C
square
#0C5019 #0C2150 #500C43 #503B0C
split-complementary
#0C5019 #3B0C50 #500C21
monochromatic
#041B08 #041B08 #0C5019 #14852A #1CBA3A

Accessibility & contrast

On white

9.65
#0C5019 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#0C5019 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5019
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5019#FFFFFF#000000##FFFFFF
##0C50191.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514813
Deuteranopia (green-blind)
#4A431E
Tritanopia (blue-blind)
#004E44
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0c5019;
/* rgb */ color: rgb(12, 80, 25);
/* oklch */ color: oklch(37.8% 0.108 145.7);
Tailwind
colors: {
  custom: {
    50: '#598258',
    500: '#0c5019',
    950: '#000000',
  },
}
SCSS
$custom: #0c5019;
$custom-light: #598258;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5019",
  "rgb": {
    "r": 12,
    "g": 80,
    "b": 25
  },
  "hsl": {
    "h": 131.471,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37803,
    "c": 0.10802,
    "h": 145.7
  },
  "luminance": 0.05886
}

Semantic roles & 50–950 ramp

primary
#0C5019
secondary
#8B2C79
accent
#37CDF1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C5019

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

Preview Lab → · Contrast checker → · Palette generator →

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