#54851F#54851F

#54851F is a mid, vivid yellow-green. Relative luminance 0.188; OKLCH L 56.1% C 0.140 H 132.2°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#54851F
RGBrgb(84, 133, 31)
HSLhsl(89, 62%, 32%)
HSVhsv(89, 77%, 52%)
CMYKcmyk(36.8%, 0%, 76.7%, 47.8%)
CIE-LABlab(50.40, -33.38, 46.54)
CIE-LCHlch(50.40, 57.27, 125.65°)
OKLaboklab(56.12% -0.0942 0.104)
OKLCHoklch(56.12% 0.14 132.2)
XYZxyz(12.2909, 18.7583, 4.2692)
Luminance0.1876 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54851F #501F85
analogous
#85831F #54851F #21851F
triadic
#54851F #1F5485 #851F54
tetradic
#54851F #1F8583 #501F85 #851F21
square
#54851F #1F8583 #501F85 #851F21
split-complementary
#54851F #1F2185 #831F85
monochromatic
#152208 #355313 #54851F #73B72B #92D54A

Accessibility & contrast

On white

4.42
#54851F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#54851F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #54851F
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54851F#FFFFFF#000000##000000
##54851F1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A09
Deuteranopia (green-blind)
#847729
Tritanopia (blue-blind)
#557F72
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #54851f;
/* rgb */ color: rgb(84, 133, 31);
/* oklch */ color: oklch(56.1% 0.140 132.2);
Tailwind
colors: {
  custom: {
    50: '#89a963',
    500: '#54851f',
    950: '#000000',
  },
}
SCSS
$custom: #54851f;
$custom-light: #89a963;
$custom-dark: #000000;
JSON
{
  "hex": "#54851f",
  "rgb": {
    "r": 84,
    "g": 133,
    "b": 31
  },
  "hsl": {
    "h": 88.824,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.56122,
    "c": 0.14032,
    "h": 132.2
  },
  "luminance": 0.18759
}

Semantic roles & 50–950 ramp

primary
#54851F
secondary
#7E49B7
accent
#43E591
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #54851F

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

Preview Lab → · Contrast checker → · Palette generator →

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