#54821C#54821C

#54821C is a mid, vivid yellow-green. Relative luminance 0.179; OKLCH L 55.3% C 0.138 H 131.3°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#54821C
RGBrgb(84, 130, 28)
HSLhsl(87, 65%, 31%)
HSVhsv(87, 78%, 51%)
CMYKcmyk(35.4%, 0%, 78.5%, 49%)
CIE-LABlab(49.42, -32.19, 46.66)
CIE-LCHlch(49.42, 56.69, 124.60°)
OKLaboklab(55.31% -0.0912 0.1037)
OKLCHoklch(55.31% 0.138 131.3)
XYZxyz(11.8483, 17.9335, 3.9356)
Luminance0.1793 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54821C #4A1C82
analogous
#827D1C #54821C #21821C
triadic
#54821C #1C5482 #821C54
tetradic
#54821C #1C827D #4A1C82 #821C21
square
#54821C #1C827D #4A1C82 #821C21
split-complementary
#54821C #1C2182 #7D1C82
monochromatic
#131D06 #335011 #54821C #75B427 #93D642

Accessibility & contrast

On white

4.58
#54821C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#54821C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #54821C
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54821C#FFFFFF#000000##000000
##54821C1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887804
Deuteranopia (green-blind)
#827426
Tritanopia (blue-blind)
#567C6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #54821c;
/* rgb */ color: rgb(84, 130, 28);
/* oklch */ color: oklch(55.3% 0.138 131.3);
Tailwind
colors: {
  custom: {
    50: '#88a661',
    500: '#54821c',
    950: '#000000',
  },
}
SCSS
$custom: #54821c;
$custom-light: #88a661;
$custom-dark: #000000;
JSON
{
  "hex": "#54821c",
  "rgb": {
    "r": 84,
    "g": 130,
    "b": 28
  },
  "hsl": {
    "h": 87.059,
    "s": 64.557,
    "l": 30.98
  },
  "oklch": {
    "l": 0.5531,
    "c": 0.13814,
    "h": 131.3
  },
  "luminance": 0.17934
}

Semantic roles & 50–950 ramp

primary
#54821C
secondary
#7744B5
accent
#40E88C
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #54821C

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

Preview Lab → · Contrast checker → · Palette generator →

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