#0C501D#0C501D

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

Color values

HEX#0C501D
RGBrgb(12, 80, 29)
HSLhsl(135, 74%, 18%)
HSVhsv(135, 85%, 31%)
CMYKcmyk(85%, 0%, 63.7%, 68.6%)
CIE-LABlab(29.17, -32.54, 23.98)
CIE-LCHlch(29.17, 40.42, 143.61°)
OKLaboklab(37.86% -0.0875 0.0568)
OKLCHoklch(37.86% 0.104 147)
XYZxyz(3.2418, 5.9038, 2.1309)
Luminance0.0590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C501D #500C3F
analogous
#1D500C #0C501D #0C503F
triadic
#0C501D #1D0C50 #501D0C
tetradic
#0C501D #0C1D50 #500C3F #503F0C
square
#0C501D #0C1D50 #500C3F #503F0C
split-complementary
#0C501D #3F0C50 #500C1D
monochromatic
#041B0A #041B0A #0C501D #148530 #1CBA44

Accessibility & contrast

On white

9.63
#0C501D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C501D
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C501D#FFFFFF#000000##FFFFFF
##0C501D1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514818
Deuteranopia (green-blind)
#4A4321
Tritanopia (blue-blind)
#004E45
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0c501d;
/* rgb */ color: rgb(12, 80, 29);
/* oklch */ color: oklch(37.9% 0.104 147.0);
Tailwind
colors: {
  custom: {
    50: '#59825b',
    500: '#0c501d',
    950: '#000000',
  },
}
SCSS
$custom: #0c501d;
$custom-light: #59825b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c501d",
  "rgb": {
    "r": 12,
    "g": 80,
    "b": 29
  },
  "hsl": {
    "h": 135,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37857,
    "c": 0.10437,
    "h": 147
  },
  "luminance": 0.05904
}

Semantic roles & 50–950 ramp

primary
#0C501D
secondary
#8B2C74
accent
#37C2F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C501D

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

Preview Lab → · Contrast checker → · Palette generator →

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