#054218#054218

#054218 is a dark, moderate green. Relative luminance 0.040; OKLCH L 33.2% C 0.091 H 148.2°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#054218
RGBrgb(5, 66, 24)
HSLhsl(139, 86%, 14%)
HSVhsv(139, 92%, 26%)
CMYKcmyk(92.4%, 0%, 63.6%, 74.1%)
CIE-LABlab(23.65, -28.95, 20.21)
CIE-LCHlch(23.65, 35.31, 145.09°)
OKLaboklab(33.22% -0.0777 0.0482)
OKLCHoklch(33.22% 0.091 148.2)
XYZxyz(2.1755, 3.9944, 1.5203)
Luminance0.0399 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#054218 #42052F
analogous
#114205 #054218 #054237
triadic
#054218 #180542 #421805
tetradic
#054218 #051142 #42052F #423705
square
#054218 #051142 #42052F #423705
split-complementary
#054218 #370542 #420511
monochromatic
#021C0A #021C0A #054218 #097B2D #0EB441

Accessibility & contrast

On white

11.67
#054218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#054218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #054218
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##054218#FFFFFF#000000##FFFFFF
##0542181.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#433B14
Deuteranopia (green-blind)
#3C361B
Tritanopia (blue-blind)
#004039
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #054218;
/* rgb */ color: rgb(5, 66, 24);
/* oklch */ color: oklch(33.2% 0.091 148.2);
Tailwind
colors: {
  custom: {
    50: '#527756',
    500: '#054218',
    950: '#000000',
  },
}
SCSS
$custom: #054218;
$custom-light: #527756;
$custom-dark: #000000;
JSON
{
  "hex": "#054218",
  "rgb": {
    "r": 5,
    "g": 66,
    "b": 24
  },
  "hsl": {
    "h": 138.689,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.33221,
    "c": 0.09145,
    "h": 148.2
  },
  "luminance": 0.03995
}

Semantic roles & 50–950 ramp

primary
#054218
secondary
#822064
accent
#2CBBFC
background
#F5F7F5
surface
#E8EDE9
border
#C4C8C5
text
#030903
muted
#787B78

Preview Lab

Preview with #054218

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

Preview Lab → · Contrast checker → · Palette generator →

#054218 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva