#0C5121#0C5121

#0C5121 is a dark, moderate green. Relative luminance 0.061; OKLCH L 38.2% C 0.102 H 148.4°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#0C5121
RGBrgb(12, 81, 33)
HSLhsl(138, 74%, 18%)
HSVhsv(138, 85%, 32%)
CMYKcmyk(85.2%, 0%, 59.3%, 68.2%)
CIE-LABlab(29.59, -32.29, 22.28)
CIE-LCHlch(29.59, 39.23, 145.40°)
OKLaboklab(38.23% -0.0868 0.0534)
OKLCHoklch(38.23% 0.102 148.4)
XYZxyz(3.3683, 6.0724, 2.4331)
Luminance0.0607 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C5121 #510C3C
analogous
#19510C #0C5121 #0C5143
triadic
#0C5121 #210C51 #51210C
tetradic
#0C5121 #0C1951 #510C3C #51430C
square
#0C5121 #0C1951 #510C3C #51430C
split-complementary
#0C5121 #430C51 #510C19
monochromatic
#041B0B #041C0B #0C5121 #148637 #1CBC4C

Accessibility & contrast

On white

9.48
#0C5121 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#0C5121 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C5121
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C5121#FFFFFF#000000##FFFFFF
##0C51211.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52491D
Deuteranopia (green-blind)
#4A4425
Tritanopia (blue-blind)
#004F46
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #0c5121;
/* rgb */ color: rgb(12, 81, 33);
/* oklch */ color: oklch(38.2% 0.102 148.4);
Tailwind
colors: {
  custom: {
    50: '#59835d',
    500: '#0c5121',
    950: '#000000',
  },
}
SCSS
$custom: #0c5121;
$custom-light: #59835d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c5121",
  "rgb": {
    "r": 12,
    "g": 81,
    "b": 33
  },
  "hsl": {
    "h": 138.261,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.38228,
    "c": 0.10191,
    "h": 148.4
  },
  "luminance": 0.06073
}

Semantic roles & 50–950 ramp

primary
#0C5121
secondary
#8C2C6F
accent
#37B8F1
background
#F5F8F5
surface
#E9EFE9
border
#C5CAC5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C5121

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

Preview Lab → · Contrast checker → · Palette generator →

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