#54812F#54812F

#54812F is a mid, vivid yellow-green. Relative luminance 0.178; OKLCH L 55.2% C 0.123 H 133.3°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#54812F
RGBrgb(84, 129, 47)
HSLhsl(93, 47%, 35%)
HSVhsv(93, 64%, 51%)
CMYKcmyk(34.9%, 0%, 63.6%, 49.4%)
CIE-LABlab(49.24, -30.24, 38.60)
CIE-LCHlch(49.24, 49.04, 128.08°)
OKLaboklab(55.22% -0.0844 0.0895)
OKLCHoklch(55.22% 0.123 133.3)
XYZxyz(12.0193, 17.7901, 5.4893)
Luminance0.1779 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54812F #5C2F81
analogous
#7D812F #54812F #2F8133
triadic
#54812F #2F5481 #812F54
tetradic
#54812F #2F7D81 #5C2F81 #81332F
square
#54812F #2F7D81 #5C2F81 #81332F
split-complementary
#54812F #332F81 #812F7D
monochromatic
#1A270E #37541F #54812F #71AE3F #90C664

Accessibility & contrast

On white

4.61
#54812F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#54812F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #54812F
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54812F#FFFFFF#000000##FFFFFF
##54812F1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867726
Deuteranopia (green-blind)
#807435
Tritanopia (blue-blind)
#547C70
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #54812f;
/* rgb */ color: rgb(84, 129, 47);
/* oklch */ color: oklch(55.2% 0.123 133.3);
Tailwind
colors: {
  custom: {
    50: '#87a66b',
    500: '#54812f',
    950: '#000000',
  },
}
SCSS
$custom: #54812f;
$custom-light: #87a66b;
$custom-dark: #000000;
JSON
{
  "hex": "#54812f",
  "rgb": {
    "r": 84,
    "g": 129,
    "b": 47
  },
  "hsl": {
    "h": 92.927,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.55215,
    "c": 0.12301,
    "h": 133.3
  },
  "luminance": 0.17791
}

Semantic roles & 50–950 ramp

primary
#54812F
secondary
#8A5EAD
accent
#52D69A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F07
muted
#7D7F7A

Preview Lab

Preview with #54812F

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

Preview Lab → · Contrast checker → · Palette generator →

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