#0C5316#0C5316

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

Color values

HEX#0C5316
RGBrgb(12, 83, 22)
HSLhsl(128, 75%, 19%)
HSVhsv(128, 86%, 33%)
CMYKcmyk(85.5%, 0%, 73.5%, 67.5%)
CIE-LABlab(30.21, -34.61, 28.72)
CIE-LCHlch(30.21, 44.97, 140.31°)
OKLaboklab(38.7% -0.0934 0.0662)
OKLCHoklch(38.7% 0.115 144.7)
XYZxyz(3.3895, 6.3222, 1.8006)
Luminance0.0632 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5316 #530C49
analogous
#25530C #0C5316 #0C5339
triadic
#0C5316 #160C53 #53160C
tetradic
#0C5316 #0C2553 #530C49 #53390C
square
#0C5316 #0C2553 #530C49 #53390C
split-complementary
#0C5316 #390C53 #530C25
monochromatic
#041B07 #041E08 #0C5316 #148824 #1BBE32

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C5316#FFFFFF#000000##FFFFFF
##0C53161.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c5316;
/* rgb */ color: rgb(12, 83, 22);
/* oklch */ color: oklch(38.7% 0.115 144.7);
Tailwind
colors: {
  custom: {
    50: '#5a8457',
    500: '#0c5316',
    950: '#000000',
  },
}
SCSS
$custom: #0c5316;
$custom-light: #5a8457;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5316",
  "rgb": {
    "r": 12,
    "g": 83,
    "b": 22
  },
  "hsl": {
    "h": 128.451,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38698,
    "c": 0.11451,
    "h": 144.7
  },
  "luminance": 0.06323
}

Semantic roles & 50–950 ramp

primary
#0C5316
secondary
#8E2D80
accent
#36D7F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #0C5316

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

Preview Lab → · Contrast checker → · Palette generator →

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