#54871C#54871C

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

Color values

HEX#54871C
RGBrgb(84, 135, 28)
HSLhsl(89, 66%, 32%)
HSVhsv(89, 79%, 53%)
CMYKcmyk(37.8%, 0%, 79.3%, 47.1%)
CIE-LABlab(51.03, -34.46, 48.20)
CIE-LCHlch(51.03, 59.25, 125.56°)
OKLaboklab(56.63% -0.0974 0.1069)
OKLCHoklch(56.63% 0.145 132.3)
XYZxyz(12.5296, 19.2961, 4.1627)
Luminance0.1930 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54871C #4F1C87
analogous
#87851C #54871C #1F871C
triadic
#54871C #1C5487 #871C54
tetradic
#54871C #1C8785 #4F1C87 #871C1F
square
#54871C #1C8785 #4F1C87 #871C1F
split-complementary
#54871C #1C1F87 #851C87
monochromatic
#152207 #345411 #54871C #74BA27 #92D845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##54871C#FFFFFF#000000##000000
##54871C1.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)
#8D7C01
Deuteranopia (green-blind)
#867827
Tritanopia (blue-blind)
#558173
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #54871c;
/* rgb */ color: rgb(84, 135, 28);
/* oklch */ color: oklch(56.6% 0.145 132.3);
Tailwind
colors: {
  custom: {
    50: '#89aa61',
    500: '#54871c',
    950: '#000000',
  },
}
SCSS
$custom: #54871c;
$custom-light: #89aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#54871c",
  "rgb": {
    "r": 84,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 88.598,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.5663,
    "c": 0.14464,
    "h": 132.3
  },
  "luminance": 0.19297
}

Semantic roles & 50–950 ramp

primary
#54871C
secondary
#7D45BA
accent
#3FE990
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #54871C

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

Preview Lab → · Contrast checker → · Palette generator →

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