#0C5315#0C5315

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

Color values

HEX#0C5315
RGBrgb(12, 83, 21)
HSLhsl(128, 75%, 19%)
HSVhsv(128, 86%, 33%)
CMYKcmyk(85.5%, 0%, 74.7%, 67.5%)
CIE-LABlab(30.20, -34.72, 29.18)
CIE-LCHlch(30.20, 45.35, 139.96°)
OKLaboklab(38.69% -0.0938 0.067)
OKLCHoklch(38.69% 0.115 144.5)
XYZxyz(3.3800, 6.3184, 1.7508)
Luminance0.0632 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5315 #530C4A
analogous
#26530C #0C5315 #0C5338
triadic
#0C5315 #150C53 #53150C
tetradic
#0C5315 #0C2653 #530C4A #53380C
square
#0C5315 #0C2653 #530C4A #53380C
split-complementary
#0C5315 #380C53 #530C26
monochromatic
#041B07 #041E07 #0C5315 #148823 #1BBE30

Accessibility & contrast

On white

9.28
#0C5315 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#0C5315 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5315
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5315#FFFFFF#000000##FFFFFF
##0C53151.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A0C
Deuteranopia (green-blind)
#4D451B
Tritanopia (blue-blind)
#005146
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0c5315;
/* rgb */ color: rgb(12, 83, 21);
/* oklch */ color: oklch(38.7% 0.115 144.5);
Tailwind
colors: {
  custom: {
    50: '#5a8456',
    500: '#0c5315',
    950: '#000000',
  },
}
SCSS
$custom: #0c5315;
$custom-light: #5a8456;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5315",
  "rgb": {
    "r": 12,
    "g": 83,
    "b": 21
  },
  "hsl": {
    "h": 127.606,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38687,
    "c": 0.11529,
    "h": 144.5
  },
  "luminance": 0.06319
}

Semantic roles & 50–950 ramp

primary
#0C5315
secondary
#8E2D82
accent
#36DAF1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #0C5315

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

Preview Lab → · Contrast checker → · Palette generator →

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