#0C5117#0C5117

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

Color values

HEX#0C5117
RGBrgb(12, 81, 23)
HSLhsl(130, 74%, 18%)
HSVhsv(130, 85%, 32%)
CMYKcmyk(85.2%, 0%, 71.6%, 68.2%)
CIE-LABlab(29.47, -33.75, 27.44)
CIE-LCHlch(29.47, 43.49, 140.89°)
OKLaboklab(38.09% -0.0911 0.0636)
OKLCHoklch(38.09% 0.111 145.1)
XYZxyz(3.2485, 6.0245, 1.8021)
Luminance0.0602 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5117 #510C46
analogous
#23510C #0C5117 #0C5139
triadic
#0C5117 #170C51 #51170C
tetradic
#0C5117 #0C2351 #510C46 #51390C
square
#0C5117 #0C2351 #510C46 #51390C
split-complementary
#0C5117 #390C51 #510C23
monochromatic
#041B08 #041C08 #0C5117 #148626 #1CBC35

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C5117#FFFFFF#000000##FFFFFF
##0C51171.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)
#524910
Deuteranopia (green-blind)
#4B431C
Tritanopia (blue-blind)
#004F45
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #0c5117;
/* rgb */ color: rgb(12, 81, 23);
/* oklch */ color: oklch(38.1% 0.111 145.1);
Tailwind
colors: {
  custom: {
    50: '#598357',
    500: '#0c5117',
    950: '#000000',
  },
}
SCSS
$custom: #0c5117;
$custom-light: #598357;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5117",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 23
  },
  "hsl": {
    "h": 129.565,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38089,
    "c": 0.11107,
    "h": 145.1
  },
  "luminance": 0.06025
}

Semantic roles & 50–950 ramp

primary
#0C5117
secondary
#8C2C7D
accent
#37D3F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A03
muted
#797C78

Preview Lab

Preview with #0C5117

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

Preview Lab → · Contrast checker → · Palette generator →

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