#54871F#54871F

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

Color values

HEX#54871F
RGBrgb(84, 135, 31)
HSLhsl(89, 63%, 33%)
HSVhsv(89, 77%, 53%)
CMYKcmyk(37.8%, 0%, 77%, 47.1%)
CIE-LABlab(51.05, -34.28, 47.17)
CIE-LCHlch(51.05, 58.31, 126.01°)
OKLaboklab(56.65% -0.0967 0.1053)
OKLCHoklch(56.65% 0.143 132.6)
XYZxyz(12.5673, 19.3111, 4.3613)
Luminance0.1931 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54871F #521F87
analogous
#87861F #54871F #20871F
triadic
#54871F #1F5487 #871F54
tetradic
#54871F #1F8786 #521F87 #871F20
square
#54871F #1F8786 #521F87 #871F20
split-complementary
#54871F #1F2087 #861F87
monochromatic
#162308 #355514 #54871F #73B92A #92D64B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##54871F#FFFFFF#000000##000000
##54871F1.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)
#8D7C08
Deuteranopia (green-blind)
#867829
Tritanopia (blue-blind)
#558173
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #54871f;
/* rgb */ color: rgb(84, 135, 31);
/* oklch */ color: oklch(56.6% 0.143 132.6);
Tailwind
colors: {
  custom: {
    50: '#89aa63',
    500: '#54871f',
    950: '#000000',
  },
}
SCSS
$custom: #54871f;
$custom-light: #89aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#54871f",
  "rgb": {
    "r": 84,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 89.423,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5665,
    "c": 0.14293,
    "h": 132.6
  },
  "luminance": 0.19312
}

Semantic roles & 50–950 ramp

primary
#54871F
secondary
#804AB8
accent
#42E692
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #54871F

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

Preview Lab → · Contrast checker → · Palette generator →

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