#54821B#54821B

#54821B is a mid, vivid yellow-green. Relative luminance 0.179; OKLCH L 55.3% C 0.139 H 131.3°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#54821B
RGBrgb(84, 130, 27)
HSLhsl(87, 66%, 31%)
HSVhsv(87, 79%, 51%)
CMYKcmyk(35.4%, 0%, 79.2%, 49%)
CIE-LABlab(49.41, -32.25, 47.00)
CIE-LCHlch(49.41, 57.00, 124.46°)
OKLaboklab(55.3% -0.0915 0.1043)
OKLCHoklch(55.3% 0.139 131.3)
XYZxyz(11.8365, 17.9288, 3.8736)
Luminance0.1793 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54821B #491B82
analogous
#827C1B #54821B #20821B
triadic
#54821B #1B5482 #821B54
tetradic
#54821B #1B827C #491B82 #821B20
square
#54821B #1B827C #491B82 #821B20
split-complementary
#54821B #1B2082 #7C1B82
monochromatic
#131D06 #334F10 #54821B #75B526 #94D740

Accessibility & contrast

On white

4.58
#54821B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#54821B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #54821B
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54821B#FFFFFF#000000##000000
##54821B1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887801
Deuteranopia (green-blind)
#827426
Tritanopia (blue-blind)
#567C6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #54821b;
/* rgb */ color: rgb(84, 130, 27);
/* oklch */ color: oklch(55.3% 0.139 131.3);
Tailwind
colors: {
  custom: {
    50: '#88a660',
    500: '#54821b',
    950: '#000000',
  },
}
SCSS
$custom: #54821b;
$custom-light: #88a660;
$custom-dark: #000000;
JSON
{
  "hex": "#54821b",
  "rgb": {
    "r": 84,
    "g": 130,
    "b": 27
  },
  "hsl": {
    "h": 86.796,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55304,
    "c": 0.13871,
    "h": 131.3
  },
  "luminance": 0.17929
}

Semantic roles & 50–950 ramp

primary
#54821B
secondary
#7643B6
accent
#3FE98B
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #54821B

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

Preview Lab → · Contrast checker → · Palette generator →

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