#0C5317#0C5317

#0C5317 is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.7% C 0.114 H 144.9°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#0C5317
RGBrgb(12, 83, 23)
HSLhsl(129, 75%, 19%)
HSVhsv(129, 86%, 33%)
CMYKcmyk(85.5%, 0%, 72.3%, 67.5%)
CIE-LABlab(30.22, -34.49, 28.25)
CIE-LCHlch(30.22, 44.59, 140.68°)
OKLaboklab(38.71% -0.0931 0.0653)
OKLCHoklch(38.71% 0.114 144.9)
XYZxyz(3.3993, 6.3261, 1.8524)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5317 #530C48
analogous
#24530C #0C5317 #0C533A
triadic
#0C5317 #170C53 #53170C
tetradic
#0C5317 #0C2453 #530C48 #533A0C
square
#0C5317 #0C2453 #530C48 #533A0C
split-complementary
#0C5317 #3A0C53 #530C24
monochromatic
#041B07 #041E08 #0C5317 #148826 #1BBE35

Accessibility & contrast

On white

9.27
#0C5317 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#0C5317 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5317
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5317#FFFFFF#000000##FFFFFF
##0C53171.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A0F
Deuteranopia (green-blind)
#4D451D
Tritanopia (blue-blind)
#005147
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0c5317;
/* rgb */ color: rgb(12, 83, 23);
/* oklch */ color: oklch(38.7% 0.114 144.9);
Tailwind
colors: {
  custom: {
    50: '#5a8457',
    500: '#0c5317',
    950: '#000000',
  },
}
SCSS
$custom: #0c5317;
$custom-light: #5a8457;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5317",
  "rgb": {
    "r": 12,
    "g": 83,
    "b": 23
  },
  "hsl": {
    "h": 129.296,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38709,
    "c": 0.11372,
    "h": 144.9
  },
  "luminance": 0.06327
}

Semantic roles & 50–950 ramp

primary
#0C5317
secondary
#8E2D7F
accent
#36D4F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #0C5317

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

Preview Lab → · Contrast checker → · Palette generator →

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