#054021#054021

#054021 is a dark, moderate green. Relative luminance 0.038; OKLCH L 32.8% C 0.079 H 153.9°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#054021
RGBrgb(5, 64, 33)
HSLhsl(148, 86%, 14%)
HSVhsv(148, 92%, 25%)
CMYKcmyk(92.2%, 0%, 48.4%, 74.9%)
CIE-LABlab(23.03, -26.38, 14.00)
CIE-LCHlch(23.03, 29.86, 152.03°)
OKLaboklab(32.75% -0.0709 0.0347)
OKLCHoklch(32.75% 0.079 153.9)
XYZxyz(2.1703, 3.8086, 2.0593)
Luminance0.0381 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#054021 #400524
analogous
#064005 #054021 #05403E
triadic
#054021 #210540 #402105
tetradic
#054021 #050640 #400524 #403E05
square
#054021 #050640 #400524 #403E05
split-complementary
#054021 #3E0540 #400506
monochromatic
#021C0F #021C0F #054021 #09793E #0EB25C

Accessibility & contrast

On white

11.92
#054021 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#054021 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #054021
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##054021#FFFFFF#000000##FFFFFF
##0540211.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403A1F
Deuteranopia (green-blind)
#393523
Tritanopia (blue-blind)
#003F38
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #054021;
/* rgb */ color: rgb(5, 64, 33);
/* oklch */ color: oklch(32.8% 0.079 153.9);
Tailwind
colors: {
  custom: {
    50: '#51755c',
    500: '#054021',
    950: '#000000',
  },
}
SCSS
$custom: #054021;
$custom-light: #51755c;
$custom-dark: #000000;
JSON
{
  "hex": "#054021",
  "rgb": {
    "r": 5,
    "g": 64,
    "b": 33
  },
  "hsl": {
    "h": 148.475,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.32751,
    "c": 0.07891,
    "h": 153.9
  },
  "luminance": 0.03809
}

Semantic roles & 50–950 ramp

primary
#054021
secondary
#812053
accent
#2C99FC
background
#F4F7F5
surface
#E7EDE9
border
#C3C8C5
text
#030804
muted
#787B79

Preview Lab

Preview with #054021

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

Preview Lab → · Contrast checker → · Palette generator →

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