#54792A#54792A

#54792A is a mid, moderate yellow-green. Relative luminance 0.157; OKLCH L 53.1% C 0.116 H 130.8°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#54792A
RGBrgb(84, 121, 42)
HSLhsl(88, 48%, 32%)
HSVhsv(88, 65%, 47%)
CMYKcmyk(30.6%, 0%, 65.3%, 52.5%)
CIE-LABlab(46.61, -26.88, 38.04)
CIE-LCHlch(46.61, 46.58, 125.24°)
OKLaboklab(53.06% -0.0756 0.0877)
OKLCHoklch(53.06% 0.116 130.8)
XYZxyz(10.9113, 15.7264, 4.6507)
Luminance0.1573 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54792A #4F2A79
analogous
#79772A #54792A #2D792A
triadic
#54792A #2A5479 #792A54
tetradic
#54792A #2A7977 #4F2A79 #792A2D
square
#54792A #2A7977 #4F2A79 #792A2D
split-complementary
#54792A #2A2D79 #772A79
monochromatic
#151E0A #344C1A #54792A #74A63A #92C558

Accessibility & contrast

On white

5.07
#54792A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#54792A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #54792A
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54792A#FFFFFF#000000##FFFFFF
##54792A1.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7020
Deuteranopia (green-blind)
#796E30
Tritanopia (blue-blind)
#567468
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #54792a;
/* rgb */ color: rgb(84, 121, 42);
/* oklch */ color: oklch(53.1% 0.116 130.8);
Tailwind
colors: {
  custom: {
    50: '#87a067',
    500: '#54792a',
    950: '#000000',
  },
}
SCSS
$custom: #54792a;
$custom-light: #87a067;
$custom-dark: #000000;
JSON
{
  "hex": "#54792a",
  "rgb": {
    "r": 84,
    "g": 121,
    "b": 42
  },
  "hsl": {
    "h": 88.101,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53063,
    "c": 0.1158,
    "h": 130.8
  },
  "luminance": 0.15727
}

Semantic roles & 50–950 ramp

primary
#54792A
secondary
#7D54AB
accent
#50D890
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0B0E06
muted
#7C7E7A

Preview Lab

Preview with #54792A

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

Preview Lab → · Contrast checker → · Palette generator →

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