#54871D#54871D

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

Color values

HEX#54871D
RGBrgb(84, 135, 29)
HSLhsl(89, 65%, 32%)
HSVhsv(89, 79%, 53%)
CMYKcmyk(37.8%, 0%, 78.5%, 47.1%)
CIE-LABlab(51.04, -34.40, 47.86)
CIE-LCHlch(51.04, 58.94, 125.71°)
OKLaboklab(56.64% -0.0972 0.1064)
OKLCHoklch(56.64% 0.144 132.4)
XYZxyz(12.5417, 19.3009, 4.2268)
Luminance0.1930 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54871D #501D87
analogous
#87851D #54871D #1F871D
triadic
#54871D #1D5487 #871D54
tetradic
#54871D #1D8785 #501D87 #871D1F
square
#54871D #1D8785 #501D87 #871D1F
split-complementary
#54871D #1D1F87 #851D87
monochromatic
#152207 #355512 #54871D #73B928 #92D747

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##54871D#FFFFFF#000000##000000
##54871D1.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)
#8D7C03
Deuteranopia (green-blind)
#867828
Tritanopia (blue-blind)
#558173
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #54871d;
/* rgb */ color: rgb(84, 135, 29);
/* oklch */ color: oklch(56.6% 0.144 132.4);
Tailwind
colors: {
  custom: {
    50: '#89aa62',
    500: '#54871d',
    950: '#000000',
  },
}
SCSS
$custom: #54871d;
$custom-light: #89aa62;
$custom-dark: #000000;
JSON
{
  "hex": "#54871d",
  "rgb": {
    "r": 84,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 88.868,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56637,
    "c": 0.14409,
    "h": 132.4
  },
  "luminance": 0.19301
}

Semantic roles & 50–950 ramp

primary
#54871D
secondary
#7E46B9
accent
#40E891
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #54871D

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

Preview Lab → · Contrast checker → · Palette generator →

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