#0C5412#0C5412

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

Color values

HEX#0C5412
RGBrgb(12, 84, 18)
HSLhsl(125, 75%, 19%)
HSVhsv(125, 86%, 33%)
CMYKcmyk(85.7%, 0%, 78.6%, 67.1%)
CIE-LABlab(30.55, -35.40, 30.88)
CIE-LCHlch(30.55, 46.98, 138.90°)
OKLaboklab(38.97% -0.0958 0.0702)
OKLCHoklch(38.97% 0.119 143.8)
XYZxyz(3.4309, 6.4621, 1.6386)
Luminance0.0646 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5412 #540C4E
analogous
#2A540C #0C5412 #0C5436
triadic
#0C5412 #120C54 #54120C
tetradic
#0C5412 #0C2A54 #540C4E #54360C
square
#0C5412 #0C2A54 #540C4E #54360C
split-complementary
#0C5412 #360C54 #540C2A
monochromatic
#041B06 #041E07 #0C5412 #148A1D #1BBF29

Accessibility & contrast

On white

9.16
#0C5412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C5412
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5412#FFFFFF#000000##FFFFFF
##0C54121.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#564B07
Deuteranopia (green-blind)
#4E4619
Tritanopia (blue-blind)
#005147
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #0c5412;
/* rgb */ color: rgb(12, 84, 18);
/* oklch */ color: oklch(39.0% 0.119 143.8);
Tailwind
colors: {
  custom: {
    50: '#5a8554',
    500: '#0c5412',
    950: '#000000',
  },
}
SCSS
$custom: #0c5412;
$custom-light: #5a8554;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5412",
  "rgb": {
    "r": 12,
    "g": 84,
    "b": 18
  },
  "hsl": {
    "h": 125,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.38968,
    "c": 0.11875,
    "h": 143.8
  },
  "luminance": 0.06462
}

Semantic roles & 50–950 ramp

primary
#0C5412
secondary
#8F2D87
accent
#36E2F2
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B03
muted
#797C78

Preview Lab

Preview with #0C5412

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

Preview Lab → · Contrast checker → · Palette generator →

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