#0C4F27#0C4F27

#0C4F27 is a dark, moderate green. Relative luminance 0.058; OKLCH L 37.7% C 0.093 H 151.6°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#0C4F27
RGBrgb(12, 79, 39)
HSLhsl(144, 74%, 18%)
HSVhsv(144, 85%, 31%)
CMYKcmyk(84.8%, 0%, 50.6%, 69%)
CIE-LABlab(28.94, -30.39, 17.99)
CIE-LCHlch(28.94, 35.31, 149.37°)
OKLaboklab(37.72% -0.0817 0.0441)
OKLCHoklch(37.72% 0.093 151.6)
XYZxyz(3.3135, 5.8162, 2.8671)
Luminance0.0582 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F27 #4F0C34
analogous
#134F0C #0C4F27 #0C4F48
triadic
#0C4F27 #270C4F #4F270C
tetradic
#0C4F27 #0C134F #4F0C34 #4F480C
square
#0C4F27 #0C134F #4F0C34 #4F480C
split-complementary
#0C4F27 #480C4F #4F0C13
monochromatic
#041B0D #041B0D #0C4F27 #148441 #1CB95B

Accessibility & contrast

On white

9.71
#0C4F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#0C4F27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C4F27
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F27#FFFFFF#000000##FFFFFF
##0C4F271.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4824
Deuteranopia (green-blind)
#48422A
Tritanopia (blue-blind)
#004E45
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c4f27;
/* rgb */ color: rgb(12, 79, 39);
/* oklch */ color: oklch(37.7% 0.093 151.6);
Tailwind
colors: {
  custom: {
    50: '#588162',
    500: '#0c4f27',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f27;
$custom-light: #588162;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f27",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 39
  },
  "hsl": {
    "h": 144.179,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37719,
    "c": 0.09282,
    "h": 151.6
  },
  "luminance": 0.05817
}

Semantic roles & 50–950 ramp

primary
#0C4F27
secondary
#8B2C65
accent
#38A6F0
background
#F5F7F5
surface
#E9EEEA
border
#C5C9C6
text
#040A05
muted
#797C79

Preview Lab

Preview with #0C4F27

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

Preview Lab → · Contrast checker → · Palette generator →

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