#0C501B#0C501B

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

Color values

HEX#0C501B
RGBrgb(12, 80, 27)
HSLhsl(133, 74%, 18%)
HSVhsv(133, 85%, 31%)
CMYKcmyk(85%, 0%, 66.3%, 68.6%)
CIE-LABlab(29.14, -32.83, 25.02)
CIE-LCHlch(29.14, 41.28, 142.69°)
OKLaboklab(37.83% -0.0884 0.0589)
OKLCHoklch(37.83% 0.106 146.3)
XYZxyz(3.2179, 5.8942, 2.0048)
Luminance0.0590 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C501B #500C41
analogous
#1F500C #0C501B #0C503D
triadic
#0C501B #1B0C50 #501B0C
tetradic
#0C501B #0C1F50 #500C41 #503D0C
square
#0C501B #0C1F50 #500C41 #503D0C
split-complementary
#0C501B #3D0C50 #500C1F
monochromatic
#041B09 #041B09 #0C501B #14852D #1CBA3F

Accessibility & contrast

On white

9.64
#0C501B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C501B
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C501B#FFFFFF#000000##FFFFFF
##0C501B1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c501b;
/* rgb */ color: rgb(12, 80, 27);
/* oklch */ color: oklch(37.8% 0.106 146.3);
Tailwind
colors: {
  custom: {
    50: '#598259',
    500: '#0c501b',
    950: '#000000',
  },
}
SCSS
$custom: #0c501b;
$custom-light: #598259;
$custom-dark: #000000;
JSON
{
  "hex": "#0c501b",
  "rgb": {
    "r": 12,
    "g": 80,
    "b": 27
  },
  "hsl": {
    "h": 133.235,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.37829,
    "c": 0.10623,
    "h": 146.3
  },
  "luminance": 0.05895
}

Semantic roles & 50–950 ramp

primary
#0C501B
secondary
#8B2C76
accent
#37C8F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C501B

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

Preview Lab → · Contrast checker → · Palette generator →

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