#0C5321#0C5321

#0C5321 is a dark, moderate green. Relative luminance 0.064; OKLCH L 38.8% C 0.105 H 148.1°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#0C5321
RGBrgb(12, 83, 33)
HSLhsl(138, 75%, 19%)
HSVhsv(138, 86%, 33%)
CMYKcmyk(85.5%, 0%, 60.2%, 67.5%)
CIE-LABlab(30.34, -33.08, 23.17)
CIE-LCHlch(30.34, 40.39, 144.99°)
OKLaboklab(38.84% -0.0889 0.0554)
OKLCHoklch(38.84% 0.105 148.1)
XYZxyz(3.5191, 6.3741, 2.4834)
Luminance0.0637 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5321 #530C3E
analogous
#1A530C #0C5321 #0C5344
triadic
#0C5321 #210C53 #53210C
tetradic
#0C5321 #0C1A53 #530C3E #53440C
square
#0C5321 #0C1A53 #530C3E #53440C
split-complementary
#0C5321 #440C53 #530C1A
monochromatic
#041B0B #041E0C #0C5321 #148836 #1BBE4C

Accessibility & contrast

On white

9.23
#0C5321 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#0C5321 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5321
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5321#FFFFFF#000000##FFFFFF
##0C53211.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544B1C
Deuteranopia (green-blind)
#4C4525
Tritanopia (blue-blind)
#005148
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #0c5321;
/* rgb */ color: rgb(12, 83, 33);
/* oklch */ color: oklch(38.8% 0.105 148.1);
Tailwind
colors: {
  custom: {
    50: '#59845e',
    500: '#0c5321',
    950: '#000000',
  },
}
SCSS
$custom: #0c5321;
$custom-light: #59845e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5321",
  "rgb": {
    "r": 12,
    "g": 83,
    "b": 33
  },
  "hsl": {
    "h": 137.746,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.38843,
    "c": 0.10475,
    "h": 148.1
  },
  "luminance": 0.06374
}

Semantic roles & 50–950 ramp

primary
#0C5321
secondary
#8E2D71
accent
#36BAF1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040B04
muted
#797C79

Preview Lab

Preview with #0C5321

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

Preview Lab → · Contrast checker → · Palette generator →

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