#0C4D21#0C4D21

#0C4D21 is a dark, moderate green. Relative luminance 0.055; OKLCH L 37.0% C 0.096 H 149.1°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#0C4D21
RGBrgb(12, 77, 33)
HSLhsl(139, 73%, 17%)
HSVhsv(139, 84%, 30%)
CMYKcmyk(84.4%, 0%, 57.1%, 69.8%)
CIE-LABlab(28.10, -30.69, 20.46)
CIE-LCHlch(28.10, 36.88, 146.31°)
OKLaboklab(36.99% -0.0825 0.0494)
OKLCHoklch(36.99% 0.096 149.1)
XYZxyz(3.0798, 5.4954, 2.3369)
Luminance0.0550 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4D21 #4D0C38
analogous
#174D0C #0C4D21 #0C4D42
triadic
#0C4D21 #210C4D #4D210C
tetradic
#0C4D21 #0C174D #4D0C38 #4D420C
square
#0C4D21 #0C174D #4D0C38 #4D420C
split-complementary
#0C4D21 #420C4D #4D0C17
monochromatic
#041A0B #041A0B #0C4D21 #148238 #1DB74E

Accessibility & contrast

On white

10.00
#0C4D21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#0C4D21 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4D21
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4D21#FFFFFF#000000##FFFFFF
##0C4D211.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E451D
Deuteranopia (green-blind)
#464024
Tritanopia (blue-blind)
#004B43
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #0c4d21;
/* rgb */ color: rgb(12, 77, 33);
/* oklch */ color: oklch(37.0% 0.096 149.1);
Tailwind
colors: {
  custom: {
    50: '#587f5d',
    500: '#0c4d21',
    950: '#000000',
  },
}
SCSS
$custom: #0c4d21;
$custom-light: #587f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4d21",
  "rgb": {
    "r": 12,
    "g": 77,
    "b": 33
  },
  "hsl": {
    "h": 139.385,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.36991,
    "c": 0.09613,
    "h": 149.1
  },
  "luminance": 0.05496
}

Semantic roles & 50–950 ramp

primary
#0C4D21
secondary
#892C6B
accent
#38B4F0
background
#F5F7F5
surface
#E9EEE9
border
#C5C9C5
text
#040A04
muted
#797C79

Preview Lab

Preview with #0C4D21

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

Preview Lab → · Contrast checker → · Palette generator →

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