#0C4D27#0C4D27

#0C4D27 is a dark, moderate green. Relative luminance 0.055; OKLCH L 37.1% C 0.090 H 152.2°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#0C4D27
RGBrgb(12, 77, 39)
HSLhsl(145, 73%, 17%)
HSVhsv(145, 84%, 30%)
CMYKcmyk(84.4%, 0%, 49.4%, 69.8%)
CIE-LABlab(28.20, -29.55, 17.04)
CIE-LCHlch(28.20, 34.11, 150.03°)
OKLaboklab(37.1% -0.0794 0.0419)
OKLCHoklch(37.1% 0.09 152.2)
XYZxyz(3.1714, 5.5320, 2.8197)
Luminance0.0553 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4D27 #4D0C32
analogous
#114D0C #0C4D27 #0C4D48
triadic
#0C4D27 #270C4D #4D270C
tetradic
#0C4D27 #0C114D #4D0C32 #4D480C
square
#0C4D27 #0C114D #4D0C32 #4D480C
split-complementary
#0C4D27 #480C4D #4D0C11
monochromatic
#041A0D #041A0D #0C4D27 #148242 #1DB75D

Accessibility & contrast

On white

9.97
#0C4D27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#0C4D27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4D27
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4D27#FFFFFF#000000##FFFFFF
##0C4D271.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4624
Deuteranopia (green-blind)
#46402A
Tritanopia (blue-blind)
#004C44
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #0c4d27;
/* rgb */ color: rgb(12, 77, 39);
/* oklch */ color: oklch(37.1% 0.090 152.2);
Tailwind
colors: {
  custom: {
    50: '#577f61',
    500: '#0c4d27',
    950: '#000000',
  },
}
SCSS
$custom: #0c4d27;
$custom-light: #577f61;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4d27",
  "rgb": {
    "r": 12,
    "g": 77,
    "b": 39
  },
  "hsl": {
    "h": 144.923,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.37104,
    "c": 0.08982,
    "h": 152.2
  },
  "luminance": 0.05532
}

Semantic roles & 50–950 ramp

primary
#0C4D27
secondary
#892C62
accent
#38A3F0
background
#F5F7F5
surface
#E9EEEA
border
#C5C9C6
text
#040A05
muted
#797C79

Preview Lab

Preview with #0C4D27

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

Preview Lab → · Contrast checker → · Palette generator →

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