#0C5F24#0C5F24

#0C5F24 is a dark, moderate green. Relative luminance 0.084; OKLCH L 42.5% C 0.118 H 147.5°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#0C5F24
RGBrgb(12, 95, 36)
HSLhsl(137, 78%, 21%)
HSVhsv(137, 87%, 37%)
CMYKcmyk(87.4%, 0%, 62.1%, 62.7%)
CIE-LABlab(34.78, -37.18, 26.83)
CIE-LCHlch(34.78, 45.85, 144.18°)
OKLaboklab(42.54% -0.0999 0.0636)
OKLCHoklch(42.54% 0.118 147.5)
XYZxyz(4.5619, 8.3894, 3.0476)
Luminance0.0839 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5F24 #5F0C47
analogous
#1E5F0C #0C5F24 #0C5F4D
triadic
#0C5F24 #240C5F #5F240C
tetradic
#0C5F24 #0C1E5F #5F0C47 #5F4D0C
square
#0C5F24 #0C1E5F #5F0C47 #5F4D0C
split-complementary
#0C5F24 #4D0C5F #5F0C1E
monochromatic
#031B0A #05290F #0C5F24 #139539 #1ACC4D

Accessibility & contrast

On white

7.84
#0C5F24 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#0C5F24 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5F24
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5F24#FFFFFF#000000##FFFFFF
##0C5F241.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60561E
Deuteranopia (green-blind)
#574F29
Tritanopia (blue-blind)
#005D52
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #0c5f24;
/* rgb */ color: rgb(12, 95, 36);
/* oklch */ color: oklch(42.5% 0.118 147.5);
Tailwind
colors: {
  custom: {
    50: '#5d8d61',
    500: '#0c5f24',
    950: '#000000',
  },
}
SCSS
$custom: #0c5f24;
$custom-light: #5d8d61;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5f24",
  "rgb": {
    "r": 12,
    "g": 95,
    "b": 36
  },
  "hsl": {
    "h": 137.349,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.42543,
    "c": 0.11842,
    "h": 147.5
  },
  "luminance": 0.0839
}

Semantic roles & 50–950 ramp

primary
#0C5F24
secondary
#992D7A
accent
#34BCF4
background
#F5F8F5
surface
#EAF0EA
border
#C6CBC6
text
#050C05
muted
#797D79

Preview Lab

Preview with #0C5F24

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

Preview Lab → · Contrast checker → · Palette generator →

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