#0C5118#0C5118

#0C5118 is a dark, moderate green. Relative luminance 0.060; OKLCH L 38.1% C 0.110 H 145.3°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#0C5118
RGBrgb(12, 81, 24)
HSLhsl(130, 74%, 18%)
HSVhsv(130, 85%, 32%)
CMYKcmyk(85.2%, 0%, 70.4%, 68.2%)
CIE-LABlab(29.48, -33.62, 26.95)
CIE-LCHlch(29.48, 43.09, 141.28°)
OKLaboklab(38.1% -0.0907 0.0627)
OKLCHoklch(38.1% 0.11 145.3)
XYZxyz(3.2587, 6.0286, 1.8559)
Luminance0.0603 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5118 #510C45
analogous
#22510C #0C5118 #0C513A
triadic
#0C5118 #180C51 #51180C
tetradic
#0C5118 #0C2251 #510C45 #513A0C
square
#0C5118 #0C2251 #510C45 #513A0C
split-complementary
#0C5118 #3A0C51 #510C22
monochromatic
#041B08 #041C08 #0C5118 #148628 #1CBC38

Accessibility & contrast

On white

9.52
#0C5118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#0C5118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5118
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5118#FFFFFF#000000##FFFFFF
##0C51181.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524911
Deuteranopia (green-blind)
#4B431D
Tritanopia (blue-blind)
#004F45
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0c5118;
/* rgb */ color: rgb(12, 81, 24);
/* oklch */ color: oklch(38.1% 0.110 145.3);
Tailwind
colors: {
  custom: {
    50: '#598358',
    500: '#0c5118',
    950: '#000000',
  },
}
SCSS
$custom: #0c5118;
$custom-light: #598358;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5118",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 24
  },
  "hsl": {
    "h": 130.435,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38101,
    "c": 0.11023,
    "h": 145.3
  },
  "luminance": 0.06029
}

Semantic roles & 50–950 ramp

primary
#0C5118
secondary
#8C2C7C
accent
#37D1F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C5118

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

Preview Lab → · Contrast checker → · Palette generator →

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