#54851A#54851A

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

Color values

HEX#54851A
RGBrgb(84, 133, 26)
HSLhsl(87, 67%, 31%)
HSVhsv(87, 80%, 52%)
CMYKcmyk(36.8%, 0%, 80.5%, 47.8%)
CIE-LABlab(50.37, -33.67, 48.24)
CIE-LCHlch(50.37, 58.83, 124.92°)
OKLaboklab(56.09% -0.0954 0.1067)
OKLCHoklch(56.09% 0.143 131.8)
XYZxyz(12.2300, 18.7340, 3.9487)
Luminance0.1873 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54851A #4B1A85
analogous
#85801A #54851A #1E851A
triadic
#54851A #1A5485 #851A54
tetradic
#54851A #1A8580 #4B1A85 #851A1E
square
#54851A #1A8580 #4B1A85 #851A1E
split-complementary
#54851A #1A1E85 #801A85
monochromatic
#131F06 #345210 #54851A #74B824 #93DA40

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##54851A#FFFFFF#000000##000000
##54851A1.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)
#8B7A00
Deuteranopia (green-blind)
#847726
Tritanopia (blue-blind)
#557F71
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #54851a;
/* rgb */ color: rgb(84, 133, 26);
/* oklch */ color: oklch(56.1% 0.143 131.8);
Tailwind
colors: {
  custom: {
    50: '#89a960',
    500: '#54851a',
    950: '#000000',
  },
}
SCSS
$custom: #54851a;
$custom-light: #89a960;
$custom-dark: #000000;
JSON
{
  "hex": "#54851a",
  "rgb": {
    "r": 84,
    "g": 133,
    "b": 26
  },
  "hsl": {
    "h": 87.477,
    "s": 67.296,
    "l": 31.176
  },
  "oklch": {
    "l": 0.5609,
    "c": 0.14313,
    "h": 131.8
  },
  "luminance": 0.18734
}

Semantic roles & 50–950 ramp

primary
#54851A
secondary
#7842B8
accent
#3EEA8D
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C1005
muted
#7D7F79

Preview Lab

Preview with #54851A

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

Preview Lab → · Contrast checker → · Palette generator →

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