#54821F#54821F

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

Color values

HEX#54821F
RGBrgb(84, 130, 31)
HSLhsl(88, 61%, 32%)
HSVhsv(88, 76%, 51%)
CMYKcmyk(35.4%, 0%, 76.2%, 49%)
CIE-LABlab(49.43, -32.01, 45.60)
CIE-LCHlch(49.43, 55.71, 125.07°)
OKLaboklab(55.33% -0.0905 0.102)
OKLCHoklch(55.33% 0.136 131.6)
XYZxyz(11.8860, 17.9486, 4.1342)
Luminance0.1795 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54821F #4D1F82
analogous
#827F1F #54821F #22821F
triadic
#54821F #1F5482 #821F54
tetradic
#54821F #1F827F #4D1F82 #821F22
square
#54821F #1F827F #4D1F82 #821F22
split-complementary
#54821F #1F2282 #7F1F82
monochromatic
#141F07 #345113 #54821F #74B32B #93D348

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##54821F#FFFFFF#000000##000000
##54821F1.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)
#88780B
Deuteranopia (green-blind)
#827429
Tritanopia (blue-blind)
#557C6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #54821f;
/* rgb */ color: rgb(84, 130, 31);
/* oklch */ color: oklch(55.3% 0.136 131.6);
Tailwind
colors: {
  custom: {
    50: '#88a662',
    500: '#54821f',
    950: '#000000',
  },
}
SCSS
$custom: #54821f;
$custom-light: #88a662;
$custom-dark: #000000;
JSON
{
  "hex": "#54821f",
  "rgb": {
    "r": 84,
    "g": 130,
    "b": 31
  },
  "hsl": {
    "h": 87.879,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.55331,
    "c": 0.13635,
    "h": 131.6
  },
  "luminance": 0.17949
}

Semantic roles & 50–950 ramp

primary
#54821F
secondary
#7B48B5
accent
#43E58E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #54821F

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

Preview Lab → · Contrast checker → · Palette generator →

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