#54781A#54781A

#54781A is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.7% C 0.126 H 128.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#54781A
RGBrgb(84, 120, 26)
HSLhsl(83, 64%, 29%)
HSVhsv(83, 78%, 47%)
CMYKcmyk(30%, 0%, 78.3%, 52.9%)
CIE-LABlab(46.17, -27.60, 44.26)
CIE-LCHlch(46.17, 52.15, 121.95°)
OKLaboklab(52.66% -0.079 0.0983)
OKLCHoklch(52.66% 0.126 128.8)
XYZxyz(10.5591, 15.3921, 3.3917)
Luminance0.1539 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54781A #3E1A78
analogous
#786D1A #54781A #25781A
triadic
#54781A #1A5478 #781A54
tetradic
#54781A #1A786D #3E1A78 #781A25
square
#54781A #1A786D #3E1A78 #781A25
split-complementary
#54781A #1A2578 #6D1A78
monochromatic
#121905 #31460F #54781A #77AA25 #98D438

Accessibility & contrast

On white

5.15
#54781A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#54781A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #54781A
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54781A#FFFFFF#000000##FFFFFF
##54781A1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F05
Deuteranopia (green-blind)
#796D23
Tritanopia (blue-blind)
#577266
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #54781a;
/* rgb */ color: rgb(84, 120, 26);
/* oklch */ color: oklch(52.7% 0.126 128.8);
Tailwind
colors: {
  custom: {
    50: '#889f5e',
    500: '#54781a',
    950: '#000000',
  },
}
SCSS
$custom: #54781a;
$custom-light: #889f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#54781a",
  "rgb": {
    "r": 84,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 82.979,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.5266,
    "c": 0.12611,
    "h": 128.8
  },
  "luminance": 0.15392
}

Semantic roles & 50–950 ramp

primary
#54781A
secondary
#6A41AC
accent
#40E780
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #54781A

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

Preview Lab → · Contrast checker → · Palette generator →

#54781A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva