#54801F#54801F

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

Color values

HEX#54801F
RGBrgb(84, 128, 31)
HSLhsl(87, 61%, 31%)
HSVhsv(87, 76%, 50%)
CMYKcmyk(34.4%, 0%, 75.8%, 49.8%)
CIE-LABlab(48.79, -31.08, 44.96)
CIE-LCHlch(48.79, 54.66, 124.66°)
OKLaboklab(54.8% -0.088 0.1006)
OKLCHoklch(54.8% 0.134 131.2)
XYZxyz(11.6225, 17.4217, 4.0464)
Luminance0.1742 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54801F #4B1F80
analogous
#807B1F #54801F #24801F
triadic
#54801F #1F5480 #801F54
tetradic
#54801F #1F807B #4B1F80 #801F24
square
#54801F #1F807B #4B1F80 #801F24
split-complementary
#54801F #1F2480 #7B1F80
monochromatic
#131D07 #344F13 #54801F #74B12B #93D247

Accessibility & contrast

On white

4.68
#54801F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #54801F
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54801F#FFFFFF#000000##FFFFFF
##54801F1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86760C
Deuteranopia (green-blind)
#807328
Tritanopia (blue-blind)
#567A6D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #54801f;
/* rgb */ color: rgb(84, 128, 31);
/* oklch */ color: oklch(54.8% 0.134 131.2);
Tailwind
colors: {
  custom: {
    50: '#88a562',
    500: '#54801f',
    950: '#000000',
  },
}
SCSS
$custom: #54801f;
$custom-light: #88a562;
$custom-dark: #000000;
JSON
{
  "hex": "#54801f",
  "rgb": {
    "r": 84,
    "g": 128,
    "b": 31
  },
  "hsl": {
    "h": 87.216,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54804,
    "c": 0.13369,
    "h": 131.2
  },
  "luminance": 0.17422
}

Semantic roles & 50–950 ramp

primary
#54801F
secondary
#7848B3
accent
#44E48C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #54801F

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

Preview Lab → · Contrast checker → · Palette generator →

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