#0C4F28#0C4F28

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

Color values

HEX#0C4F28
RGBrgb(12, 79, 40)
HSLhsl(145, 74%, 18%)
HSVhsv(145, 85%, 31%)
CMYKcmyk(84.8%, 0%, 49.4%, 69%)
CIE-LABlab(28.96, -30.18, 17.41)
CIE-LCHlch(28.96, 34.85, 150.02°)
OKLaboklab(37.74% -0.0811 0.0428)
OKLCHoklch(37.74% 0.092 152.2)
XYZxyz(3.3303, 5.8229, 2.9555)
Luminance0.0582 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C4F28 #4F0C33
analogous
#114F0C #0C4F28 #0C4F49
triadic
#0C4F28 #280C4F #4F280C
tetradic
#0C4F28 #0C114F #4F0C33 #4F490C
square
#0C4F28 #0C114F #4F0C33 #4F490C
split-complementary
#0C4F28 #490C4F #4F0C11
monochromatic
#041B0D #041B0D #0C4F28 #148443 #1CB95E

Accessibility & contrast

On white

9.70
#0C4F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C4F28
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C4F28#FFFFFF#000000##FFFFFF
##0C4F281.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4825
Deuteranopia (green-blind)
#47422B
Tritanopia (blue-blind)
#004E46
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #0c4f28;
/* rgb */ color: rgb(12, 79, 40);
/* oklch */ color: oklch(37.7% 0.092 152.2);
Tailwind
colors: {
  custom: {
    50: '#588162',
    500: '#0c4f28',
    950: '#000000',
  },
}
SCSS
$custom: #0c4f28;
$custom-light: #588162;
$custom-dark: #000000;
JSON
{
  "hex": "#0c4f28",
  "rgb": {
    "r": 12,
    "g": 79,
    "b": 40
  },
  "hsl": {
    "h": 145.075,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.37739,
    "c": 0.09175,
    "h": 152.2
  },
  "luminance": 0.05823
}

Semantic roles & 50–950 ramp

primary
#0C4F28
secondary
#8B2C63
accent
#38A3F0
background
#F5F7F5
surface
#E9EEEA
border
#C5C9C6
text
#040A05
muted
#797C79

Preview Lab

Preview with #0C4F28

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

Preview Lab → · Contrast checker → · Palette generator →

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