#054018#054018

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

Color values

HEX#054018
RGBrgb(5, 64, 24)
HSLhsl(139, 86%, 14%)
HSVhsv(139, 92%, 25%)
CMYKcmyk(92.2%, 0%, 62.5%, 74.9%)
CIE-LABlab(22.88, -28.16, 19.28)
CIE-LCHlch(22.88, 34.12, 145.60°)
OKLaboklab(32.58% -0.0756 0.0461)
OKLCHoklch(32.58% 0.089 148.6)
XYZxyz(2.0607, 3.7647, 1.4820)
Luminance0.0377 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#054018 #40052D
analogous
#0F4005 #054018 #054035
triadic
#054018 #180540 #401805
tetradic
#054018 #050F40 #40052D #403505
square
#054018 #050F40 #40052D #403505
split-complementary
#054018 #350540 #40050F
monochromatic
#021C0B #021C0B #054018 #09792D #0EB243

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##054018#FFFFFF#000000##FFFFFF
##0540181.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)
#413914
Deuteranopia (green-blind)
#3A351B
Tritanopia (blue-blind)
#003F37
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #054018;
/* rgb */ color: rgb(5, 64, 24);
/* oklch */ color: oklch(32.6% 0.089 148.6);
Tailwind
colors: {
  custom: {
    50: '#527556',
    500: '#054018',
    950: '#000000',
  },
}
SCSS
$custom: #054018;
$custom-light: #527556;
$custom-dark: #000000;
JSON
{
  "hex": "#054018",
  "rgb": {
    "r": 5,
    "g": 64,
    "b": 24
  },
  "hsl": {
    "h": 139.322,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.32578,
    "c": 0.08855,
    "h": 148.6
  },
  "luminance": 0.03765
}

Semantic roles & 50–950 ramp

primary
#054018
secondary
#812062
accent
#2CB9FC
background
#F4F7F5
surface
#E7EDE9
border
#C3C8C5
text
#030803
muted
#787B78

Preview Lab

Preview with #054018

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

Preview Lab → · Contrast checker → · Palette generator →

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