#54812D#54812D

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

Color values

HEX#54812D
RGBrgb(84, 129, 45)
HSLhsl(92, 48%, 34%)
HSVhsv(92, 65%, 51%)
CMYKcmyk(34.9%, 0%, 65.1%, 49.4%)
CIE-LABlab(49.22, -30.43, 39.51)
CIE-LCHlch(49.22, 49.87, 127.61°)
OKLaboklab(55.19% -0.0851 0.0912)
OKLCHoklch(55.19% 0.125 133)
XYZxyz(11.9799, 17.7743, 5.2817)
Luminance0.1777 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54812D #5A2D81
analogous
#7E812D #54812D #2D8130
triadic
#54812D #2D5481 #812D54
tetradic
#54812D #2D7E81 #5A2D81 #81302D
square
#54812D #2D7E81 #5A2D81 #81302D
split-complementary
#54812D #302D81 #812D7E
monochromatic
#19260D #36541D #54812D #72AE3D #91C861

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##54812D#FFFFFF#000000##FFFFFF
##54812D1.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)
#867723
Deuteranopia (green-blind)
#807434
Tritanopia (blue-blind)
#557C6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #54812d;
/* rgb */ color: rgb(84, 129, 45);
/* oklch */ color: oklch(55.2% 0.125 133.0);
Tailwind
colors: {
  custom: {
    50: '#87a66a',
    500: '#54812d',
    950: '#000000',
  },
}
SCSS
$custom: #54812d;
$custom-light: #87a66a;
$custom-dark: #000000;
JSON
{
  "hex": "#54812d",
  "rgb": {
    "r": 84,
    "g": 129,
    "b": 45
  },
  "hsl": {
    "h": 92.143,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.55193,
    "c": 0.12472,
    "h": 133
  },
  "luminance": 0.17775
}

Semantic roles & 50–950 ramp

primary
#54812D
secondary
#885CAE
accent
#50D899
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F07
muted
#7D7F7A

Preview Lab

Preview with #54812D

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

Preview Lab → · Contrast checker → · Palette generator →

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