#08420C#08420C

#08420C is a dark, moderate green. Relative luminance 0.040; OKLCH L 33.1% C 0.101 H 143.6°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#08420C
RGBrgb(8, 66, 12)
HSLhsl(124, 78%, 15%)
HSVhsv(124, 88%, 26%)
CMYKcmyk(87.9%, 0%, 81.8%, 74.1%)
CIE-LABlab(23.59, -30.00, 26.32)
CIE-LCHlch(23.59, 39.91, 138.74°)
OKLaboklab(33.14% -0.0812 0.0598)
OKLCHoklch(33.14% 0.101 143.6)
XYZxyz(2.1146, 3.9743, 1.0034)
Luminance0.0398 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08420C #42083E
analogous
#214208 #08420C #084229
triadic
#08420C #0C0842 #420C08
tetradic
#08420C #082142 #42083E #422908
square
#08420C #082142 #42083E #422908
split-complementary
#08420C #290842 #420821
monochromatic
#031B05 #031B05 #08420C #0F7916 #15AF20

Accessibility & contrast

On white

11.70
#08420C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#08420C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08420C
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08420C#FFFFFF#000000##FFFFFF
##08420C1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B04
Deuteranopia (green-blind)
#3D3612
Tritanopia (blue-blind)
#004037
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #08420c;
/* rgb */ color: rgb(8, 66, 12);
/* oklch */ color: oklch(33.1% 0.101 143.6);
Tailwind
colors: {
  custom: {
    50: '#54774f',
    500: '#08420c',
    950: '#000000',
  },
}
SCSS
$custom: #08420c;
$custom-light: #54774f;
$custom-dark: #000000;
JSON
{
  "hex": "#08420c",
  "rgb": {
    "r": 8,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 124.138,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.33142,
    "c": 0.10086,
    "h": 143.6
  },
  "luminance": 0.03975
}

Semantic roles & 50–950 ramp

primary
#08420C
secondary
#80257A
accent
#33E7F5
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#030902
muted
#787B78

Preview Lab

Preview with #08420C

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

Preview Lab → · Contrast checker → · Palette generator →

#08420C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva