#05420C#05420C

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

Color values

HEX#05420C
RGBrgb(5, 66, 12)
HSLhsl(127, 86%, 14%)
HSVhsv(127, 92%, 26%)
CMYKcmyk(92.4%, 0%, 81.8%, 74.1%)
CIE-LABlab(23.52, -30.57, 26.23)
CIE-LCHlch(23.52, 40.28, 139.36°)
OKLaboklab(33.07% -0.0826 0.0596)
OKLCHoklch(33.07% 0.102 144.2)
XYZxyz(2.0770, 3.9550, 1.0017)
Luminance0.0396 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05420C #42053B
analogous
#1D4205 #05420C #05422B
triadic
#05420C #0C0542 #420C05
tetradic
#05420C #051D42 #42053B #422B05
square
#05420C #051D42 #42053B #422B05
split-complementary
#05420C #2B0542 #42051D
monochromatic
#021C05 #021C05 #05420C #097B16 #0EB421

Accessibility & contrast

On white

11.73
#05420C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#05420C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #05420C
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05420C#FFFFFF#000000##FFFFFF
##05420C1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.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: #05420c;
/* rgb */ color: rgb(5, 66, 12);
/* oklch */ color: oklch(33.1% 0.102 144.2);
Tailwind
colors: {
  custom: {
    50: '#53774e',
    500: '#05420c',
    950: '#000000',
  },
}
SCSS
$custom: #05420c;
$custom-light: #53774e;
$custom-dark: #000000;
JSON
{
  "hex": "#05420c",
  "rgb": {
    "r": 5,
    "g": 66,
    "b": 12
  },
  "hsl": {
    "h": 126.885,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.3307,
    "c": 0.10184,
    "h": 144.2
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#05420C
secondary
#822077
accent
#2CE4FC
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#030902
muted
#787B78

Preview Lab

Preview with #05420C

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

Preview Lab → · Contrast checker → · Palette generator →

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