#54802F#54802F

#54802F is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 55.0% C 0.122 H 133.1°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#54802F
RGBrgb(84, 128, 47)
HSLhsl(93, 46%, 34%)
HSVhsv(93, 63%, 50%)
CMYKcmyk(34.4%, 0%, 63.3%, 49.8%)
CIE-LABlab(48.92, -29.77, 38.24)
CIE-LCHlch(48.92, 48.46, 127.90°)
OKLaboklab(54.95% -0.0831 0.0888)
OKLCHoklch(54.95% 0.122 133.1)
XYZxyz(11.8882, 17.5279, 5.4456)
Luminance0.1753 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54802F #5B2F80
analogous
#7D802F #54802F #2F8033
triadic
#54802F #2F5480 #802F54
tetradic
#54802F #2F7D80 #5B2F80 #80332F
square
#54802F #2F7D80 #5B2F80 #80332F
split-complementary
#54802F #332F80 #802F7D
monochromatic
#19260E #37531F #54802F #71AD3F #90C663

Accessibility & contrast

On white

4.66
#54802F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#54802F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #54802F
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54802F#FFFFFF#000000##FFFFFF
##54802F1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857626
Deuteranopia (green-blind)
#7F7335
Tritanopia (blue-blind)
#547B6F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #54802f;
/* rgb */ color: rgb(84, 128, 47);
/* oklch */ color: oklch(55.0% 0.122 133.1);
Tailwind
colors: {
  custom: {
    50: '#87a56b',
    500: '#54802f',
    950: '#000000',
  },
}
SCSS
$custom: #54802f;
$custom-light: #87a56b;
$custom-dark: #000000;
JSON
{
  "hex": "#54802f",
  "rgb": {
    "r": 84,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 92.593,
    "s": 46.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54953,
    "c": 0.12158,
    "h": 133.1
  },
  "luminance": 0.17528
}

Semantic roles & 50–950 ramp

primary
#54802F
secondary
#895EAD
accent
#52D69A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F07
muted
#7D7F7A

Preview Lab

Preview with #54802F

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

Preview Lab → · Contrast checker → · Palette generator →

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