#54831F#54831F

#54831F is a mid, vivid yellow-green. Relative luminance 0.182; OKLCH L 55.6% C 0.138 H 131.8°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#54831F
RGBrgb(84, 131, 31)
HSLhsl(88, 62%, 32%)
HSVhsv(88, 76%, 51%)
CMYKcmyk(35.9%, 0%, 76.3%, 48.6%)
CIE-LABlab(49.76, -32.47, 45.91)
CIE-LCHlch(49.76, 56.23, 125.26°)
OKLaboklab(55.6% -0.0918 0.1026)
OKLCHoklch(55.6% 0.138 131.8)
XYZxyz(12.0197, 18.2159, 4.1788)
Luminance0.1822 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54831F #4E1F83
analogous
#83801F #54831F #22831F
triadic
#54831F #1F5483 #831F54
tetradic
#54831F #1F8380 #4E1F83 #831F22
square
#54831F #1F8380 #4E1F83 #831F22
split-complementary
#54831F #1F2283 #801F83
monochromatic
#152008 #345213 #54831F #74B42B #92D449

Accessibility & contrast

On white

4.52
#54831F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#54831F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #54831F
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54831F#FFFFFF#000000##000000
##54831F1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790A
Deuteranopia (green-blind)
#827529
Tritanopia (blue-blind)
#557D70
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #54831f;
/* rgb */ color: rgb(84, 131, 31);
/* oklch */ color: oklch(55.6% 0.138 131.8);
Tailwind
colors: {
  custom: {
    50: '#88a762',
    500: '#54831f',
    950: '#000000',
  },
}
SCSS
$custom: #54831f;
$custom-light: #88a762;
$custom-dark: #000000;
JSON
{
  "hex": "#54831f",
  "rgb": {
    "r": 84,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 88.2,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55595,
    "c": 0.13768,
    "h": 131.8
  },
  "luminance": 0.18216
}

Semantic roles & 50–950 ramp

primary
#54831F
secondary
#7C48B6
accent
#43E58F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F05
muted
#7D7F7A

Preview Lab

Preview with #54831F

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

Preview Lab → · Contrast checker → · Palette generator →

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