#054017#054017

#054017 is a dark, moderate green. Relative luminance 0.038; OKLCH L 32.6% C 0.090 H 148.1°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#054017
RGBrgb(5, 64, 23)
HSLhsl(138, 86%, 14%)
HSVhsv(138, 92%, 25%)
CMYKcmyk(92.2%, 0%, 64.1%, 74.9%)
CIE-LABlab(22.86, -28.33, 19.84)
CIE-LCHlch(22.86, 34.58, 144.99°)
OKLaboklab(32.56% -0.0761 0.0473)
OKLCHoklch(32.56% 0.09 148.1)
XYZxyz(2.0505, 3.7607, 1.4283)
Luminance0.0376 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#054017 #40052E
analogous
#104005 #054017 #054034
triadic
#054017 #170540 #401705
tetradic
#054017 #051040 #40052E #403405
square
#054017 #051040 #40052E #403405
split-complementary
#054017 #340540 #400510
monochromatic
#021C0A #021C0A #054017 #09792B #0EB240

Accessibility & contrast

On white

11.98
#054017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#054017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #054017
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##054017#FFFFFF#000000##FFFFFF
##0540171.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413913
Deuteranopia (green-blind)
#3A351A
Tritanopia (blue-blind)
#003E37
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #054017;
/* rgb */ color: rgb(5, 64, 23);
/* oklch */ color: oklch(32.6% 0.090 148.1);
Tailwind
colors: {
  custom: {
    50: '#527555',
    500: '#054017',
    950: '#000000',
  },
}
SCSS
$custom: #054017;
$custom-light: #527555;
$custom-dark: #000000;
JSON
{
  "hex": "#054017",
  "rgb": {
    "r": 5,
    "g": 64,
    "b": 23
  },
  "hsl": {
    "h": 138.305,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.32562,
    "c": 0.08956,
    "h": 148.1
  },
  "luminance": 0.03761
}

Semantic roles & 50–950 ramp

primary
#054017
secondary
#812063
accent
#2CBCFC
background
#F4F7F5
surface
#E7EDE9
border
#C3C8C5
text
#030803
muted
#787B78

Preview Lab

Preview with #054017

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

Preview Lab → · Contrast checker → · Palette generator →

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