#0C5326#0C5326

#0C5326 is a dark, moderate green. Relative luminance 0.064; OKLCH L 38.9% C 0.100 H 150.2°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#0C5326
RGBrgb(12, 83, 38)
HSLhsl(142, 75%, 19%)
HSVhsv(142, 86%, 33%)
CMYKcmyk(85.5%, 0%, 54.2%, 67.5%)
CIE-LABlab(30.41, -32.22, 20.43)
CIE-LCHlch(30.41, 38.15, 147.62°)
OKLaboklab(38.93% -0.0865 0.0496)
OKLCHoklch(38.93% 0.1 150.2)
XYZxyz(3.5944, 6.4042, 2.8800)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5326 #530C39
analogous
#15530C #0C5326 #0C5349
triadic
#0C5326 #260C53 #53260C
tetradic
#0C5326 #0C1553 #530C39 #53490C
square
#0C5326 #0C1553 #530C39 #53490C
split-complementary
#0C5326 #490C53 #530C15
monochromatic
#041B0C #041E0E #0C5326 #14883E #1BBE57

Accessibility & contrast

On white

9.21
#0C5326 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#0C5326 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5326
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5326#FFFFFF#000000##FFFFFF
##0C53261.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544B22
Deuteranopia (green-blind)
#4C4529
Tritanopia (blue-blind)
#005149
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #0c5326;
/* rgb */ color: rgb(12, 83, 38);
/* oklch */ color: oklch(38.9% 0.100 150.2);
Tailwind
colors: {
  custom: {
    50: '#598461',
    500: '#0c5326',
    950: '#000000',
  },
}
SCSS
$custom: #0c5326;
$custom-light: #598461;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5326",
  "rgb": {
    "r": 12,
    "g": 83,
    "b": 38
  },
  "hsl": {
    "h": 141.972,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38927,
    "c": 0.09973,
    "h": 150.2
  },
  "luminance": 0.06405
}

Semantic roles & 50–950 ramp

primary
#0C5326
secondary
#8E2D6A
accent
#36ADF1
background
#F5F8F5
surface
#E9EFEA
border
#C5CAC6
text
#040B05
muted
#797C79

Preview Lab

Preview with #0C5326

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

Preview Lab → · Contrast checker → · Palette generator →

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