#54851C#54851C

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

Color values

HEX#54851C
RGBrgb(84, 133, 28)
HSLhsl(88, 65%, 32%)
HSVhsv(88, 79%, 52%)
CMYKcmyk(36.8%, 0%, 78.9%, 47.8%)
CIE-LABlab(50.39, -33.56, 47.58)
CIE-LCHlch(50.39, 58.23, 125.19°)
OKLaboklab(56.1% -0.095 0.1057)
OKLCHoklch(56.1% 0.142 131.9)
XYZxyz(12.2532, 18.7432, 4.0706)
Luminance0.1874 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54851C #4D1C85
analogous
#85821C #54851C #20851C
triadic
#54851C #1C5485 #851C54
tetradic
#54851C #1C8582 #4D1C85 #851C20
square
#54851C #1C8582 #4D1C85 #851C20
split-complementary
#54851C #1C2085 #821C85
monochromatic
#142007 #345211 #54851C #74B827 #93D844

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##54851C#FFFFFF#000000##000000
##54851C1.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)
#8B7A02
Deuteranopia (green-blind)
#847727
Tritanopia (blue-blind)
#557F71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #54851c;
/* rgb */ color: rgb(84, 133, 28);
/* oklch */ color: oklch(56.1% 0.142 131.9);
Tailwind
colors: {
  custom: {
    50: '#89a961',
    500: '#54851c',
    950: '#000000',
  },
}
SCSS
$custom: #54851c;
$custom-light: #89a961;
$custom-dark: #000000;
JSON
{
  "hex": "#54851c",
  "rgb": {
    "r": 84,
    "g": 133,
    "b": 28
  },
  "hsl": {
    "h": 88,
    "s": 65.217,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56102,
    "c": 0.14205,
    "h": 131.9
  },
  "luminance": 0.18744
}

Semantic roles & 50–950 ramp

primary
#54851C
secondary
#7B45B8
accent
#40E88E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1005
muted
#7D7F7A

Preview Lab

Preview with #54851C

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

Preview Lab → · Contrast checker → · Palette generator →

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