#0C4E21#0C4E21

#0C4E21 is a dark, moderate green. Relative luminance 0.056; OKLCH L 37.3% C 0.098 H 148.9°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#0C4E21
RGBrgb(12, 78, 33)
HSLhsl(139, 73%, 18%)
HSVhsv(139, 85%, 31%)
CMYKcmyk(84.6%, 0%, 57.7%, 69.4%)
CIE-LABlab(28.48, -31.10, 20.92)
CIE-LCHlch(28.48, 37.48, 146.07°)
OKLaboklab(37.3% -0.0836 0.0504)
OKLCHoklch(37.3% 0.098 148.9)
XYZxyz(3.1503, 5.6364, 2.3604)
Luminance0.0564 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4E21 #4E0C39
analogous
#184E0C #0C4E21 #0C4E42
triadic
#0C4E21 #210C4E #4E210C
tetradic
#0C4E21 #0C184E #4E0C39 #4E420C
square
#0C4E21 #0C184E #4E0C39 #4E420C
split-complementary
#0C4E21 #420C4E #4E0C18
monochromatic
#041B0B #041B0B #0C4E21 #148337 #1CB84E

Accessibility & contrast

On white

9.87
#0C4E21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#0C4E21 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4E21
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4E21#FFFFFF#000000##FFFFFF
##0C4E211.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F461D
Deuteranopia (green-blind)
#474124
Tritanopia (blue-blind)
#004C44
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #0c4e21;
/* rgb */ color: rgb(12, 78, 33);
/* oklch */ color: oklch(37.3% 0.098 148.9);
Tailwind
colors: {
  custom: {
    50: '#58805d',
    500: '#0c4e21',
    950: '#000000',
  },
}
SCSS
$custom: #0c4e21;
$custom-light: #58805d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4e21",
  "rgb": {
    "r": 12,
    "g": 78,
    "b": 33
  },
  "hsl": {
    "h": 139.091,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.37301,
    "c": 0.09759,
    "h": 148.9
  },
  "luminance": 0.05637
}

Semantic roles & 50–950 ramp

primary
#0C4E21
secondary
#8A2C6C
accent
#38B5F0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C4E21

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

Preview Lab → · Contrast checker → · Palette generator →

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