#54871A#54871A

#54871A is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.6% C 0.146 H 132.2°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#54871A
RGBrgb(84, 135, 26)
HSLhsl(88, 68%, 32%)
HSVhsv(88, 81%, 53%)
CMYKcmyk(37.8%, 0%, 80.7%, 47.1%)
CIE-LABlab(51.02, -34.57, 48.84)
CIE-LCHlch(51.02, 59.84, 125.29°)
OKLaboklab(56.62% -0.0978 0.108)
OKLCHoklch(56.62% 0.146 132.2)
XYZxyz(12.5064, 19.2868, 4.0409)
Luminance0.1929 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54871A #4D1A87
analogous
#87841A #54871A #1E871A
triadic
#54871A #1A5487 #871A54
tetradic
#54871A #1A8784 #4D1A87 #871A1E
square
#54871A #1A8784 #4D1A87 #871A1E
split-complementary
#54871A #1A1E87 #841A87
monochromatic
#142006 #345410 #54871A #74BA24 #93DA41

Accessibility & contrast

On white

4.32
#54871A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#54871A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #54871A
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54871A#FFFFFF#000000##000000
##54871A1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#558173
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #54871a;
/* rgb */ color: rgb(84, 135, 26);
/* oklch */ color: oklch(56.6% 0.146 132.2);
Tailwind
colors: {
  custom: {
    50: '#89aa61',
    500: '#54871a',
    950: '#000000',
  },
}
SCSS
$custom: #54871a;
$custom-light: #89aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#54871a",
  "rgb": {
    "r": 84,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 88.073,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56618,
    "c": 0.1457,
    "h": 132.2
  },
  "luminance": 0.19287
}

Semantic roles & 50–950 ramp

primary
#54871A
secondary
#7B42BA
accent
#3DEB8E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #54871A

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

Preview Lab → · Contrast checker → · Palette generator →

#54871A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva