#0C5415#0C5415

#0C5415 is a dark, moderate green. Relative luminance 0.065; OKLCH L 39.0% C 0.117 H 144.4°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#0C5415
RGBrgb(12, 84, 21)
HSLhsl(128, 75%, 19%)
HSVhsv(128, 86%, 33%)
CMYKcmyk(85.7%, 0%, 75%, 67.1%)
CIE-LABlab(30.57, -35.09, 29.58)
CIE-LCHlch(30.57, 45.89, 139.87°)
OKLaboklab(39% -0.0948 0.0679)
OKLCHoklch(39% 0.117 144.4)
XYZxyz(3.4571, 6.4725, 1.7764)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5415 #540C4B
analogous
#27540C #0C5415 #0C5439
triadic
#0C5415 #150C54 #54150C
tetradic
#0C5415 #0C2754 #540C4B #54390C
square
#0C5415 #0C2754 #540C4B #54390C
split-complementary
#0C5415 #390C54 #540C27
monochromatic
#041B07 #041E08 #0C5415 #148A22 #1BBF30

Accessibility & contrast

On white

9.15
#0C5415 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#0C5415 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5415
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5415#FFFFFF#000000##FFFFFF
##0C54151.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B0C
Deuteranopia (green-blind)
#4E461B
Tritanopia (blue-blind)
#005247
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #0c5415;
/* rgb */ color: rgb(12, 84, 21);
/* oklch */ color: oklch(39.0% 0.117 144.4);
Tailwind
colors: {
  custom: {
    50: '#5a8556',
    500: '#0c5415',
    950: '#000000',
  },
}
SCSS
$custom: #0c5415;
$custom-light: #5a8556;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5415",
  "rgb": {
    "r": 12,
    "g": 84,
    "b": 21
  },
  "hsl": {
    "h": 127.5,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38997,
    "c": 0.11658,
    "h": 144.4
  },
  "luminance": 0.06473
}

Semantic roles & 50–950 ramp

primary
#0C5415
secondary
#8F2D83
accent
#36DAF2
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #0C5415

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

Preview Lab → · Contrast checker → · Palette generator →

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