#054012#054012

#054012 is a dark, moderate green. Relative luminance 0.037; OKLCH L 32.5% C 0.094 H 146.1°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#054012
RGBrgb(5, 64, 18)
HSLhsl(133, 86%, 14%)
HSVhsv(133, 92%, 25%)
CMYKcmyk(92.2%, 0%, 71.9%, 74.9%)
CIE-LABlab(22.80, -29.09, 22.53)
CIE-LCHlch(22.80, 36.80, 142.25°)
OKLaboklab(32.49% -0.0783 0.0526)
OKLCHoklch(32.49% 0.094 146.1)
XYZxyz(2.0050, 3.7425, 1.1888)
Luminance0.0374 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#054012 #400533
analogous
#154005 #054012 #05402F
triadic
#054012 #120540 #401205
tetradic
#054012 #051540 #400533 #402F05
square
#054012 #051540 #400533 #402F05
split-complementary
#054012 #2F0540 #400515
monochromatic
#021C08 #021C08 #054012 #097922 #0EB232

Accessibility & contrast

On white

12.01
#054012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #054012
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##054012#FFFFFF#000000##FFFFFF
##0540121.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41390D
Deuteranopia (green-blind)
#3B3516
Tritanopia (blue-blind)
#003E36
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #054012;
/* rgb */ color: rgb(5, 64, 18);
/* oklch */ color: oklch(32.5% 0.094 146.1);
Tailwind
colors: {
  custom: {
    50: '#527552',
    500: '#054012',
    950: '#000000',
  },
}
SCSS
$custom: #054012;
$custom-light: #527552;
$custom-dark: #000000;
JSON
{
  "hex": "#054012",
  "rgb": {
    "r": 5,
    "g": 64,
    "b": 18
  },
  "hsl": {
    "h": 133.22,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.32489,
    "c": 0.09432,
    "h": 146.1
  },
  "luminance": 0.03743
}

Semantic roles & 50–950 ramp

primary
#054012
secondary
#81206B
accent
#2CCEFC
background
#F4F7F4
surface
#E8EDE7
border
#C4C8C3
text
#030802
muted
#787B78

Preview Lab

Preview with #054012

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

Preview Lab → · Contrast checker → · Palette generator →

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