#54841B#54841B

#54841B is a mid, vivid yellow-green. Relative luminance 0.185; OKLCH L 55.8% C 0.141 H 131.7°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#54841B
RGBrgb(84, 132, 27)
HSLhsl(87, 66%, 31%)
HSVhsv(87, 80%, 52%)
CMYKcmyk(36.4%, 0%, 79.5%, 48.2%)
CIE-LABlab(50.06, -33.16, 47.61)
CIE-LCHlch(50.06, 58.02, 124.86°)
OKLaboklab(55.83% -0.094 0.1056)
OKLCHoklch(55.83% 0.141 131.7)
XYZxyz(12.1051, 18.4660, 3.9632)
Luminance0.1847 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54841B #4B1B84
analogous
#847F1B #54841B #1F841B
triadic
#54841B #1B5484 #841B54
tetradic
#54841B #1B847F #4B1B84 #841B1F
square
#54841B #1B847F #4B1B84 #841B1F
split-complementary
#54841B #1B1F84 #7F1B84
monochromatic
#131E06 #345111 #54841B #74B725 #93D841

Accessibility & contrast

On white

4.47
#54841B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#54841B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #54841B
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54841B#FFFFFF#000000##000000
##54841B1.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#837626
Tritanopia (blue-blind)
#557E70
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #54841b;
/* rgb */ color: rgb(84, 132, 27);
/* oklch */ color: oklch(55.8% 0.141 131.7);
Tailwind
colors: {
  custom: {
    50: '#89a861',
    500: '#54841b',
    950: '#000000',
  },
}
SCSS
$custom: #54841b;
$custom-light: #89a861;
$custom-dark: #000000;
JSON
{
  "hex": "#54841b",
  "rgb": {
    "r": 84,
    "g": 132,
    "b": 27
  },
  "hsl": {
    "h": 87.429,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.55832,
    "c": 0.14131,
    "h": 131.7
  },
  "luminance": 0.18466
}

Semantic roles & 50–950 ramp

primary
#54841B
secondary
#7843B7
accent
#3FE98D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #54841B

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

Preview Lab → · Contrast checker → · Palette generator →

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