#05420F#05420F

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

Color values

HEX#05420F
RGBrgb(5, 66, 15)
HSLhsl(130, 86%, 14%)
HSVhsv(130, 92%, 26%)
CMYKcmyk(92.4%, 0%, 77.3%, 74.1%)
CIE-LABlab(23.55, -30.23, 24.87)
CIE-LCHlch(23.55, 39.15, 140.56°)
OKLaboklab(33.1% -0.0815 0.0572)
OKLCHoklch(33.1% 0.1 144.9)
XYZxyz(2.0969, 3.9629, 1.1063)
Luminance0.0396 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#05420F #420538
analogous
#1A4205 #05420F #05422E
triadic
#05420F #0F0542 #420F05
tetradic
#05420F #051A42 #420538 #422E05
square
#05420F #051A42 #420538 #422E05
split-complementary
#05420F #2E0542 #42051A
monochromatic
#021C06 #021C06 #05420F #097B1C #0EB429

Accessibility & contrast

On white

11.71
#05420F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #05420F
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##05420F#FFFFFF#000000##FFFFFF
##05420F1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B08
Deuteranopia (green-blind)
#3D3614
Tritanopia (blue-blind)
#004038
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #05420f;
/* rgb */ color: rgb(5, 66, 15);
/* oklch */ color: oklch(33.1% 0.100 144.9);
Tailwind
colors: {
  custom: {
    50: '#537750',
    500: '#05420f',
    950: '#000000',
  },
}
SCSS
$custom: #05420f;
$custom-light: #537750;
$custom-dark: #000000;
JSON
{
  "hex": "#05420f",
  "rgb": {
    "r": 5,
    "g": 66,
    "b": 15
  },
  "hsl": {
    "h": 129.836,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.33101,
    "c": 0.09958,
    "h": 144.9
  },
  "luminance": 0.03963
}

Semantic roles & 50–950 ramp

primary
#05420F
secondary
#822072
accent
#2CDAFC
background
#F5F7F4
surface
#E9EDE7
border
#C5C8C3
text
#030902
muted
#787B78

Preview Lab

Preview with #05420F

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

Preview Lab → · Contrast checker → · Palette generator →

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