#0C5313#0C5313

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

Color values

HEX#0C5313
RGBrgb(12, 83, 19)
HSLhsl(126, 75%, 19%)
HSVhsv(126, 86%, 33%)
CMYKcmyk(85.5%, 0%, 77.1%, 67.5%)
CIE-LABlab(30.18, -34.94, 30.07)
CIE-LCHlch(30.18, 46.09, 139.29°)
OKLaboklab(38.67% -0.0945 0.0686)
OKLCHoklch(38.67% 0.117 144)
XYZxyz(3.3622, 6.3113, 1.6570)
Luminance0.0631 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5313 #530C4C
analogous
#28530C #0C5313 #0C5336
triadic
#0C5313 #130C53 #53130C
tetradic
#0C5313 #0C2853 #530C4C #53360C
square
#0C5313 #0C2853 #530C4C #53360C
split-complementary
#0C5313 #360C53 #530C28
monochromatic
#041B06 #041E07 #0C5313 #14881F #1BBE2B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C5313#FFFFFF#000000##FFFFFF
##0C53131.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)
#554A09
Deuteranopia (green-blind)
#4D4519
Tritanopia (blue-blind)
#005046
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0c5313;
/* rgb */ color: rgb(12, 83, 19);
/* oklch */ color: oklch(38.7% 0.117 144.0);
Tailwind
colors: {
  custom: {
    50: '#5a8455',
    500: '#0c5313',
    950: '#000000',
  },
}
SCSS
$custom: #0c5313;
$custom-light: #5a8455;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5313",
  "rgb": {
    "r": 12,
    "g": 83,
    "b": 19
  },
  "hsl": {
    "h": 125.915,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38667,
    "c": 0.11677,
    "h": 144
  },
  "luminance": 0.06312
}

Semantic roles & 50–950 ramp

primary
#0C5313
secondary
#8E2D85
accent
#36DFF1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #0C5313

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

Preview Lab → · Contrast checker → · Palette generator →

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