#54791B#54791B

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

Color values

HEX#54791B
RGBrgb(84, 121, 27)
HSLhsl(84, 64%, 29%)
HSVhsv(84, 78%, 47%)
CMYKcmyk(30.6%, 0%, 77.7%, 52.5%)
CIE-LABlab(46.50, -28.02, 44.21)
CIE-LCHlch(46.50, 52.34, 122.37°)
OKLaboklab(52.93% -0.08 0.0984)
OKLCHoklch(52.93% 0.127 129.1)
XYZxyz(10.6913, 15.6384, 3.4919)
Luminance0.1564 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54791B #401B79
analogous
#796F1B #54791B #25791B
triadic
#54791B #1B5479 #791B54
tetradic
#54791B #1B796F #401B79 #791B25
square
#54791B #1B796F #401B79 #791B25
split-complementary
#54791B #1B2579 #6F1B79
monochromatic
#111906 #314710 #54791B #77AB26 #97D33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##54791B#FFFFFF#000000##FFFFFF
##54791B1.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)
#7F7007
Deuteranopia (green-blind)
#7A6D24
Tritanopia (blue-blind)
#577367
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #54791b;
/* rgb */ color: rgb(84, 121, 27);
/* oklch */ color: oklch(52.9% 0.127 129.1);
Tailwind
colors: {
  custom: {
    50: '#88a05f',
    500: '#54791b',
    950: '#000000',
  },
}
SCSS
$custom: #54791b;
$custom-light: #88a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#54791b",
  "rgb": {
    "r": 84,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 83.617,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5293,
    "c": 0.12685,
    "h": 129.1
  },
  "luminance": 0.15639
}

Semantic roles & 50–950 ramp

primary
#54791B
secondary
#6D43AD
accent
#41E782
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #54791B

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

Preview Lab → · Contrast checker → · Palette generator →

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