#0C5125#0C5125

#0C5125 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.3% C 0.098 H 150.1°. Best body text is #FFFFFF at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#0C5125
RGBrgb(12, 81, 37)
HSLhsl(142, 74%, 18%)
HSVhsv(142, 85%, 32%)
CMYKcmyk(85.2%, 0%, 54.3%, 68.2%)
CIE-LABlab(29.65, -31.59, 20.06)
CIE-LCHlch(29.65, 37.42, 147.58°)
OKLaboklab(38.3% -0.0848 0.0487)
OKLCHoklch(38.3% 0.098 150.1)
XYZxyz(3.4277, 6.0962, 2.7459)
Luminance0.0610 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5125 #510C38
analogous
#15510C #0C5125 #0C5147
triadic
#0C5125 #250C51 #51250C
tetradic
#0C5125 #0C1551 #510C38 #51470C
square
#0C5125 #0C1551 #510C38 #51470C
split-complementary
#0C5125 #470C51 #510C15
monochromatic
#041B0C #041C0D #0C5125 #14863D #1CBC56

Accessibility & contrast

On white

9.46
#0C5125 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C5125
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5125#FFFFFF#000000##FFFFFF
##0C51251.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524921
Deuteranopia (green-blind)
#4A4428
Tritanopia (blue-blind)
#004F47
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5125;
/* rgb */ color: rgb(12, 81, 37);
/* oklch */ color: oklch(38.3% 0.098 150.1);
Tailwind
colors: {
  custom: {
    50: '#598360',
    500: '#0c5125',
    950: '#000000',
  },
}
SCSS
$custom: #0c5125;
$custom-light: #598360;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5125",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 37
  },
  "hsl": {
    "h": 141.739,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38296,
    "c": 0.09785,
    "h": 150.1
  },
  "luminance": 0.06097
}

Semantic roles & 50–950 ramp

primary
#0C5125
secondary
#8C2C6A
accent
#37ADF1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A05
muted
#797C79

Preview Lab

Preview with #0C5125

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

Preview Lab → · Contrast checker → · Palette generator →

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