#54802B#54802B

#54802B is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.9% C 0.125 H 132.5°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#54802B
RGBrgb(84, 128, 43)
HSLhsl(91, 50%, 34%)
HSVhsv(91, 66%, 50%)
CMYKcmyk(34.4%, 0%, 66.4%, 49.8%)
CIE-LABlab(48.88, -30.15, 40.05)
CIE-LCHlch(48.88, 50.13, 126.97°)
OKLaboklab(54.91% -0.0844 0.0921)
OKLCHoklch(54.91% 0.125 132.5)
XYZxyz(11.8112, 17.4971, 5.0400)
Luminance0.1750 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54802B #572B80
analogous
#7E802B #54802B #2B802C
triadic
#54802B #2B5480 #802B54
tetradic
#54802B #2B7E80 #572B80 #802C2B
square
#54802B #2B7E80 #572B80 #802C2B
split-complementary
#54802B #2C2B80 #802B7E
monochromatic
#18240C #36521C #54802B #72AE3A #91C95D

Accessibility & contrast

On white

4.67
#54802B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#54802B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #54802B
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54802B#FFFFFF#000000##FFFFFF
##54802B1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857620
Deuteranopia (green-blind)
#7F7332
Tritanopia (blue-blind)
#557B6E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #54802b;
/* rgb */ color: rgb(84, 128, 43);
/* oklch */ color: oklch(54.9% 0.125 132.5);
Tailwind
colors: {
  custom: {
    50: '#87a569',
    500: '#54802b',
    950: '#000000',
  },
}
SCSS
$custom: #54802b;
$custom-light: #87a569;
$custom-dark: #000000;
JSON
{
  "hex": "#54802b",
  "rgb": {
    "r": 84,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 91.059,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.5491,
    "c": 0.12496,
    "h": 132.5
  },
  "luminance": 0.17498
}

Semantic roles & 50–950 ramp

primary
#54802B
secondary
#8558AE
accent
#4FD996
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #54802B

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

Preview Lab → · Contrast checker → · Palette generator →

#54802B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva