#0C5128#0C5128

#0C5128 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.4% C 0.095 H 151.6°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#0C5128
RGBrgb(12, 81, 40)
HSLhsl(144, 74%, 18%)
HSVhsv(144, 85%, 32%)
CMYKcmyk(85.2%, 0%, 50.6%, 68.2%)
CIE-LABlab(29.70, -31.02, 18.36)
CIE-LCHlch(29.70, 36.05, 149.37°)
OKLaboklab(38.35% -0.0833 0.045)
OKLCHoklch(38.35% 0.095 151.6)
XYZxyz(3.4767, 6.1158, 3.0043)
Luminance0.0612 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5128 #510C35
analogous
#12510C #0C5128 #0C514A
triadic
#0C5128 #280C51 #51280C
tetradic
#0C5128 #0C1251 #510C35 #514A0C
square
#0C5128 #0C1251 #510C35 #514A0C
split-complementary
#0C5128 #4A0C51 #510C12
monochromatic
#041B0D #041C0E #0C5128 #148642 #1CBC5D

Accessibility & contrast

On white

9.45
#0C5128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#0C5128 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5128
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5128#FFFFFF#000000##FFFFFF
##0C51281.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514925
Deuteranopia (green-blind)
#49442B
Tritanopia (blue-blind)
#005047
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5128;
/* rgb */ color: rgb(12, 81, 40);
/* oklch */ color: oklch(38.4% 0.095 151.6);
Tailwind
colors: {
  custom: {
    50: '#588362',
    500: '#0c5128',
    950: '#000000',
  },
}
SCSS
$custom: #0c5128;
$custom-light: #588362;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5128",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 40
  },
  "hsl": {
    "h": 144.348,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38353,
    "c": 0.09472,
    "h": 151.6
  },
  "luminance": 0.06116
}

Semantic roles & 50–950 ramp

primary
#0C5128
secondary
#8C2C65
accent
#37A5F1
background
#F5F8F5
surface
#E9EFEA
border
#C5CAC6
text
#040A05
muted
#797C79

Preview Lab

Preview with #0C5128

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

Preview Lab → · Contrast checker → · Palette generator →

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