#0C5B18#0C5B18

#0C5B18 is a dark, vivid green. Relative luminance 0.076; OKLCH L 41.2% C 0.123 H 144.7°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#0C5B18
RGBrgb(12, 91, 24)
HSLhsl(129, 77%, 20%)
HSVhsv(129, 87%, 36%)
CMYKcmyk(86.8%, 0%, 73.6%, 64.3%)
CIE-LABlab(33.19, -37.29, 30.99)
CIE-LCHlch(33.19, 48.48, 140.27°)
OKLaboklab(41.18% -0.1006 0.0712)
OKLCHoklch(41.18% 0.123 144.7)
XYZxyz(4.0573, 7.6258, 2.1221)
Luminance0.0763 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5B18 #5B0C4F
analogous
#275B0C #0C5B18 #0C5B3F
triadic
#0C5B18 #180C5B #5B180C
tetradic
#0C5B18 #0C275B #5B0C4F #5B3F0C
square
#0C5B18 #0C275B #5B0C4F #5B3F0C
split-complementary
#0C5B18 #3F0C5B #5B0C27
monochromatic
#041B07 #05250A #0C5B18 #139126 #1AC735

Accessibility & contrast

On white

8.32
#0C5B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#0C5B18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5B18
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5B18#FFFFFF#000000##FFFFFF
##0C5B181.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D520E
Deuteranopia (green-blind)
#544C1E
Tritanopia (blue-blind)
#00584D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #0c5b18;
/* rgb */ color: rgb(12, 91, 24);
/* oklch */ color: oklch(41.2% 0.123 144.7);
Tailwind
colors: {
  custom: {
    50: '#5c8a59',
    500: '#0c5b18',
    950: '#000000',
  },
}
SCSS
$custom: #0c5b18;
$custom-light: #5c8a59;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5b18",
  "rgb": {
    "r": 12,
    "g": 91,
    "b": 24
  },
  "hsl": {
    "h": 129.114,
    "s": 76.699,
    "l": 20.196
  },
  "oklch": {
    "l": 0.41181,
    "c": 0.12329,
    "h": 144.7
  },
  "luminance": 0.07626
}

Semantic roles & 50–950 ramp

primary
#0C5B18
secondary
#962D86
accent
#35D6F3
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050C04
muted
#797D79

Preview Lab

Preview with #0C5B18

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

Preview Lab → · Contrast checker → · Palette generator →

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