#54791A#54791A

#54791A is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.9% C 0.127 H 129.0°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#54791A
RGBrgb(84, 121, 26)
HSLhsl(83, 65%, 29%)
HSVhsv(83, 79%, 47%)
CMYKcmyk(30.6%, 0%, 78.5%, 52.5%)
CIE-LABlab(46.49, -28.08, 44.56)
CIE-LCHlch(46.49, 52.67, 122.21°)
OKLaboklab(52.92% -0.0803 0.099)
OKLCHoklch(52.92% 0.127 129)
XYZxyz(10.6800, 15.6338, 3.4320)
Luminance0.1563 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54791A #3F1A79
analogous
#796F1A #54791A #25791A
triadic
#54791A #1A5479 #791A54
tetradic
#54791A #1A796F #3F1A79 #791A25
square
#54791A #1A796F #3F1A79 #791A25
split-complementary
#54791A #1A2579 #6F1A79
monochromatic
#111905 #31470F #54791A #77AB25 #98D439

Accessibility & contrast

On white

5.09
#54791A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#54791A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #54791A
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54791A#FFFFFF#000000##FFFFFF
##54791A1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7004
Deuteranopia (green-blind)
#7A6D23
Tritanopia (blue-blind)
#577367
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #54791a;
/* rgb */ color: rgb(84, 121, 26);
/* oklch */ color: oklch(52.9% 0.127 129.0);
Tailwind
colors: {
  custom: {
    50: '#88a05f',
    500: '#54791a',
    950: '#000000',
  },
}
SCSS
$custom: #54791a;
$custom-light: #88a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#54791a",
  "rgb": {
    "r": 84,
    "g": 121,
    "b": 26
  },
  "hsl": {
    "h": 83.368,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52923,
    "c": 0.12744,
    "h": 129
  },
  "luminance": 0.15634
}

Semantic roles & 50–950 ramp

primary
#54791A
secondary
#6B41AD
accent
#40E881
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #54791A

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

Preview Lab → · Contrast checker → · Palette generator →

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