#0C5310#0C5310

#0C5310 is a dark, moderate green. Relative luminance 0.063; OKLCH L 38.6% C 0.119 H 143.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#0C5310
RGBrgb(12, 83, 16)
HSLhsl(123, 75%, 19%)
HSVhsv(123, 86%, 33%)
CMYKcmyk(85.5%, 0%, 80.7%, 67.5%)
CIE-LABlab(30.16, -35.23, 31.32)
CIE-LCHlch(30.16, 47.14, 138.36°)
OKLaboklab(38.64% -0.0954 0.0708)
OKLCHoklch(38.64% 0.119 143.4)
XYZxyz(3.3382, 6.3017, 1.5305)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5310 #530C4F
analogous
#2B530C #0C5310 #0C5333
triadic
#0C5310 #100C53 #53100C
tetradic
#0C5310 #0C2B53 #530C4F #53330C
square
#0C5310 #0C2B53 #530C4F #53330C
split-complementary
#0C5310 #330C53 #530C2B
monochromatic
#041B05 #041E06 #0C5310 #14881A #1BBE25

Accessibility & contrast

On white

9.29
#0C5310 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C5310
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5310#FFFFFF#000000##FFFFFF
##0C53101.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A04
Deuteranopia (green-blind)
#4D4517
Tritanopia (blue-blind)
#005046
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0c5310;
/* rgb */ color: rgb(12, 83, 16);
/* oklch */ color: oklch(38.6% 0.119 143.4);
Tailwind
colors: {
  custom: {
    50: '#5a8453',
    500: '#0c5310',
    950: '#000000',
  },
}
SCSS
$custom: #0c5310;
$custom-light: #5a8453;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5310",
  "rgb": {
    "r": 12,
    "g": 83,
    "b": 16
  },
  "hsl": {
    "h": 123.38,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38641,
    "c": 0.11882,
    "h": 143.4
  },
  "luminance": 0.06302
}

Semantic roles & 50–950 ramp

primary
#0C5310
secondary
#8E2D89
accent
#36E7F1
background
#F5F8F4
surface
#E9EFE7
border
#C5CAC3
text
#040B03
muted
#797C78

Preview Lab

Preview with #0C5310

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

Preview Lab → · Contrast checker → · Palette generator →

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