#54791C#54791C

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

Color values

HEX#54791C
RGBrgb(84, 121, 28)
HSLhsl(84, 62%, 29%)
HSVhsv(84, 77%, 47%)
CMYKcmyk(30.6%, 0%, 76.9%, 52.5%)
CIE-LABlab(46.50, -27.96, 43.85)
CIE-LCHlch(46.50, 52.00, 122.52°)
OKLaboklab(52.94% -0.0798 0.0978)
OKLCHoklch(52.94% 0.126 129.2)
XYZxyz(10.7031, 15.6431, 3.5539)
Luminance0.1564 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54791C #411C79
analogous
#79701C #54791C #26791C
triadic
#54791C #1C5479 #791C54
tetradic
#54791C #1C7970 #411C79 #791C26
square
#54791C #1C7970 #411C79 #791C26
split-complementary
#54791C #1C2679 #701C79
monochromatic
#111906 #314710 #54791C #77AB28 #97D23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##54791C#FFFFFF#000000##FFFFFF
##54791C1.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)
#7F7009
Deuteranopia (green-blind)
#7A6D25
Tritanopia (blue-blind)
#577367
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #54791c;
/* rgb */ color: rgb(84, 121, 28);
/* oklch */ color: oklch(52.9% 0.126 129.2);
Tailwind
colors: {
  custom: {
    50: '#88a060',
    500: '#54791c',
    950: '#000000',
  },
}
SCSS
$custom: #54791c;
$custom-light: #88a060;
$custom-dark: #000000;
JSON
{
  "hex": "#54791c",
  "rgb": {
    "r": 84,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 83.871,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52937,
    "c": 0.12622,
    "h": 129.2
  },
  "luminance": 0.15643
}

Semantic roles & 50–950 ramp

primary
#54791C
secondary
#6E44AD
accent
#42E583
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #54791C

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

Preview Lab → · Contrast checker → · Palette generator →

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