#54801B#54801B

#54801B is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.8% C 0.136 H 130.8°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#54801B
RGBrgb(84, 128, 27)
HSLhsl(86, 65%, 30%)
HSVhsv(86, 79%, 50%)
CMYKcmyk(34.4%, 0%, 78.9%, 49.8%)
CIE-LABlab(48.76, -31.33, 46.38)
CIE-LCHlch(48.76, 55.97, 124.03°)
OKLaboklab(54.78% -0.089 0.103)
OKLCHoklch(54.78% 0.136 130.8)
XYZxyz(11.5731, 17.4019, 3.7858)
Luminance0.1740 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54801B #471B80
analogous
#80791B #54801B #21801B
triadic
#54801B #1B5480 #801B54
tetradic
#54801B #1B8079 #471B80 #801B21
square
#54801B #1B8079 #471B80 #801B21
split-complementary
#54801B #1B2180 #791B80
monochromatic
#121B06 #334D10 #54801B #75B326 #94D63F

Accessibility & contrast

On white

4.69
#54801B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#54801B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #54801B
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54801B#FFFFFF#000000##FFFFFF
##54801B1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867603
Deuteranopia (green-blind)
#807325
Tritanopia (blue-blind)
#567A6D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #54801b;
/* rgb */ color: rgb(84, 128, 27);
/* oklch */ color: oklch(54.8% 0.136 130.8);
Tailwind
colors: {
  custom: {
    50: '#88a560',
    500: '#54801b',
    950: '#000000',
  },
}
SCSS
$custom: #54801b;
$custom-light: #88a560;
$custom-dark: #000000;
JSON
{
  "hex": "#54801b",
  "rgb": {
    "r": 84,
    "g": 128,
    "b": 27
  },
  "hsl": {
    "h": 86.139,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.54776,
    "c": 0.1361,
    "h": 130.8
  },
  "luminance": 0.17402
}

Semantic roles & 50–950 ramp

primary
#54801B
secondary
#7443B4
accent
#40E889
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #54801B

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

Preview Lab → · Contrast checker → · Palette generator →

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