#0C5020#0C5020

#0C5020 is a dark, moderate green. Relative luminance 0.059; OKLCH L 37.9% C 0.101 H 148.1°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#0C5020
RGBrgb(12, 80, 32)
HSLhsl(138, 74%, 18%)
HSVhsv(138, 85%, 31%)
CMYKcmyk(85%, 0%, 60%, 68.6%)
CIE-LABlab(29.21, -32.07, 22.37)
CIE-LCHlch(29.21, 39.10, 145.10°)
OKLaboklab(37.9% -0.0862 0.0536)
OKLCHoklch(37.9% 0.101 148.1)
XYZxyz(3.2807, 5.9194, 2.3359)
Luminance0.0592 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5020 #500C3C
analogous
#1A500C #0C5020 #0C5042
triadic
#0C5020 #200C50 #50200C
tetradic
#0C5020 #0C1A50 #500C3C #50420C
square
#0C5020 #0C1A50 #500C3C #50420C
split-complementary
#0C5020 #420C50 #500C1A
monochromatic
#041B0B #041B0B #0C5020 #148535 #1CBA4B

Accessibility & contrast

On white

9.62
#0C5020 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C5020
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5020#FFFFFF#000000##FFFFFF
##0C50201.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#51481C
Deuteranopia (green-blind)
#494324
Tritanopia (blue-blind)
#004E45
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0c5020;
/* rgb */ color: rgb(12, 80, 32);
/* oklch */ color: oklch(37.9% 0.101 148.1);
Tailwind
colors: {
  custom: {
    50: '#58825d',
    500: '#0c5020',
    950: '#000000',
  },
}
SCSS
$custom: #0c5020;
$custom-light: #58825d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5020",
  "rgb": {
    "r": 12,
    "g": 80,
    "b": 32
  },
  "hsl": {
    "h": 137.647,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37903,
    "c": 0.10147,
    "h": 148.1
  },
  "luminance": 0.0592
}

Semantic roles & 50–950 ramp

primary
#0C5020
secondary
#8B2C6F
accent
#37BAF1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C5020

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

Preview Lab → · Contrast checker → · Palette generator →

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