#054217#054217

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

Color values

HEX#054217
RGBrgb(5, 66, 23)
HSLhsl(138, 86%, 14%)
HSVhsv(138, 92%, 26%)
CMYKcmyk(92.4%, 0%, 65.2%, 74.1%)
CIE-LABlab(23.64, -29.12, 20.76)
CIE-LCHlch(23.64, 35.76, 144.51°)
OKLaboklab(33.21% -0.0782 0.0493)
OKLCHoklch(33.21% 0.092 147.8)
XYZxyz(2.1653, 3.9903, 1.4665)
Luminance0.0399 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#054217 #420530
analogous
#124205 #054217 #054236
triadic
#054217 #170542 #421705
tetradic
#054217 #051242 #420530 #423605
square
#054217 #051242 #420530 #423605
split-complementary
#054217 #360542 #420512
monochromatic
#021C0A #021C0A #054217 #097B2B #0EB43F

Accessibility & contrast

On white

11.68
#054217 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #054217
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##054217#FFFFFF#000000##FFFFFF
##0542171.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #054217;
/* rgb */ color: rgb(5, 66, 23);
/* oklch */ color: oklch(33.2% 0.092 147.8);
Tailwind
colors: {
  custom: {
    50: '#527755',
    500: '#054217',
    950: '#000000',
  },
}
SCSS
$custom: #054217;
$custom-light: #527755;
$custom-dark: #000000;
JSON
{
  "hex": "#054217",
  "rgb": {
    "r": 5,
    "g": 66,
    "b": 23
  },
  "hsl": {
    "h": 137.705,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.33205,
    "c": 0.09243,
    "h": 147.8
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#054217
secondary
#822065
accent
#2CBFFC
background
#F5F7F5
surface
#E8EDE9
border
#C4C8C5
text
#030903
muted
#787B78

Preview Lab

Preview with #054217

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

Preview Lab → · Contrast checker → · Palette generator →

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