#54791F#54791F

#54791F is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 53.0% C 0.124 H 129.5°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#54791F
RGBrgb(84, 121, 31)
HSLhsl(85, 59%, 30%)
HSVhsv(85, 74%, 47%)
CMYKcmyk(30.6%, 0%, 74.4%, 52.5%)
CIE-LABlab(46.52, -27.76, 42.71)
CIE-LCHlch(46.52, 50.94, 123.02°)
OKLaboklab(52.96% -0.079 0.0959)
OKLCHoklch(52.96% 0.124 129.5)
XYZxyz(10.7408, 15.6582, 3.7525)
Luminance0.1566 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54791F #441F79
analogous
#79711F #54791F #27791F
triadic
#54791F #1F5479 #791F54
tetradic
#54791F #1F7971 #441F79 #791F27
square
#54791F #1F7971 #441F79 #791F27
split-complementary
#54791F #1F2779 #711F79
monochromatic
#111806 #324813 #54791F #76AA2B #96CF43

Accessibility & contrast

On white

5.08
#54791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #54791F
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54791F#FFFFFF#000000##FFFFFF
##54791F1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#7A6D27
Tritanopia (blue-blind)
#577467
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #54791f;
/* rgb */ color: rgb(84, 121, 31);
/* oklch */ color: oklch(53.0% 0.124 129.5);
Tailwind
colors: {
  custom: {
    50: '#87a061',
    500: '#54791f',
    950: '#000000',
  },
}
SCSS
$custom: #54791f;
$custom-light: #87a061;
$custom-dark: #000000;
JSON
{
  "hex": "#54791f",
  "rgb": {
    "r": 84,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 84.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.5296,
    "c": 0.12427,
    "h": 129.5
  },
  "luminance": 0.15658
}

Semantic roles & 50–950 ramp

primary
#54791F
secondary
#7147AC
accent
#45E286
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #54791F

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

Preview Lab → · Contrast checker → · Palette generator →

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