#0C5A18#0C5A18

#0C5A18 is a dark, vivid green. Relative luminance 0.075; OKLCH L 40.9% C 0.122 H 144.8°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#0C5A18
RGBrgb(12, 90, 24)
HSLhsl(129, 76%, 20%)
HSVhsv(129, 87%, 35%)
CMYKcmyk(86.7%, 0%, 73.3%, 64.7%)
CIE-LABlab(32.82, -36.93, 30.60)
CIE-LCHlch(32.82, 47.96, 140.36°)
OKLaboklab(40.88% -0.0996 0.0704)
OKLCHoklch(40.88% 0.122 144.8)
XYZxyz(3.9724, 7.4560, 2.0938)
Luminance0.0746 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5A18 #5A0C4E
analogous
#275A0C #0C5A18 #0C5A3F
triadic
#0C5A18 #180C5A #5A180C
tetradic
#0C5A18 #0C275A #5A0C4E #5A3F0C
square
#0C5A18 #0C275A #5A0C4E #5A3F0C
split-complementary
#0C5A18 #3F0C5A #5A0C27
monochromatic
#041B07 #05240A #0C5A18 #139026 #1AC635

Accessibility & contrast

On white

8.43
#0C5A18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#0C5A18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5A18
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5A18#FFFFFF#000000##FFFFFF
##0C5A181.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C510F
Deuteranopia (green-blind)
#534B1E
Tritanopia (blue-blind)
#00574D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #0c5a18;
/* rgb */ color: rgb(12, 90, 24);
/* oklch */ color: oklch(40.9% 0.122 144.8);
Tailwind
colors: {
  custom: {
    50: '#5c8a59',
    500: '#0c5a18',
    950: '#000000',
  },
}
SCSS
$custom: #0c5a18;
$custom-light: #5c8a59;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5a18",
  "rgb": {
    "r": 12,
    "g": 90,
    "b": 24
  },
  "hsl": {
    "h": 129.231,
    "s": 76.471,
    "l": 20
  },
  "oklch": {
    "l": 0.40875,
    "c": 0.12201,
    "h": 144.8
  },
  "luminance": 0.07456
}

Semantic roles & 50–950 ramp

primary
#0C5A18
secondary
#952D85
accent
#35D6F3
background
#F5F8F5
surface
#E9F0E9
border
#C5CBC5
text
#050C03
muted
#797D78

Preview Lab

Preview with #0C5A18

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

Preview Lab → · Contrast checker → · Palette generator →

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