#0C5120#0C5120

#0C5120 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.2% C 0.103 H 148.0°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#0C5120
RGBrgb(12, 81, 32)
HSLhsl(137, 74%, 18%)
HSVhsv(137, 85%, 32%)
CMYKcmyk(85.2%, 0%, 60.5%, 68.2%)
CIE-LABlab(29.58, -32.46, 22.82)
CIE-LCHlch(29.58, 39.68, 144.89°)
OKLaboklab(38.21% -0.0872 0.0546)
OKLCHoklch(38.21% 0.103 148)
XYZxyz(3.3545, 6.0669, 2.3605)
Luminance0.0607 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5120 #510C3D
analogous
#1A510C #0C5120 #0C5142
triadic
#0C5120 #200C51 #51200C
tetradic
#0C5120 #0C1A51 #510C3D #51420C
square
#0C5120 #0C1A51 #510C3D #51420C
split-complementary
#0C5120 #420C51 #510C1A
monochromatic
#041B0B #041C0B #0C5120 #148635 #1CBC4A

Accessibility & contrast

On white

9.49
#0C5120 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#0C5120 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5120
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5120#FFFFFF#000000##FFFFFF
##0C51201.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52491B
Deuteranopia (green-blind)
#4A4424
Tritanopia (blue-blind)
#004F46
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5120;
/* rgb */ color: rgb(12, 81, 32);
/* oklch */ color: oklch(38.2% 0.103 148.0);
Tailwind
colors: {
  custom: {
    50: '#59835d',
    500: '#0c5120',
    950: '#000000',
  },
}
SCSS
$custom: #0c5120;
$custom-light: #59835d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5120",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 32
  },
  "hsl": {
    "h": 137.391,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38212,
    "c": 0.10289,
    "h": 148
  },
  "luminance": 0.06067
}

Semantic roles & 50–950 ramp

primary
#0C5120
secondary
#8C2C71
accent
#37BBF1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C5120

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

Preview Lab → · Contrast checker → · Palette generator →

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