#54842A#54842A

#54842A is a mid, vivid yellow-green. Relative luminance 0.186; OKLCH L 56.0% C 0.131 H 133.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#54842A
RGBrgb(84, 132, 42)
HSLhsl(92, 52%, 34%)
HSVhsv(92, 68%, 52%)
CMYKcmyk(36.4%, 0%, 68.2%, 48.2%)
CIE-LABlab(50.16, -32.10, 41.87)
CIE-LCHlch(50.16, 52.76, 127.47°)
OKLaboklab(55.95% -0.0899 0.0958)
OKLCHoklch(55.95% 0.131 133.2)
XYZxyz(12.3251, 18.5540, 5.1219)
Luminance0.1855 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54842A #5A2A84
analogous
#81842A #54842A #2A842D
triadic
#54842A #2A5484 #842A54
tetradic
#54842A #2A8184 #5A2A84 #842D2A
square
#54842A #2A8184 #5A2A84 #842D2A
split-complementary
#54842A #2D2A84 #842A81
monochromatic
#19270C #36561B #54842A #72B239 #91CB5D

Accessibility & contrast

On white

4.46
#54842A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#54842A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #54842A
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54842A#FFFFFF#000000##000000
##54842A1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A1E
Deuteranopia (green-blind)
#837631
Tritanopia (blue-blind)
#547F72
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #54842a;
/* rgb */ color: rgb(84, 132, 42);
/* oklch */ color: oklch(56.0% 0.131 133.2);
Tailwind
colors: {
  custom: {
    50: '#88a868',
    500: '#54842a',
    950: '#000000',
  },
}
SCSS
$custom: #54842a;
$custom-light: #88a868;
$custom-dark: #000000;
JSON
{
  "hex": "#54842a",
  "rgb": {
    "r": 84,
    "g": 132,
    "b": 42
  },
  "hsl": {
    "h": 92,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.55951,
    "c": 0.13137,
    "h": 133.2
  },
  "luminance": 0.18555
}

Semantic roles & 50–950 ramp

primary
#54842A
secondary
#8859B1
accent
#4DDB99
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #54842A

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

Preview Lab → · Contrast checker → · Palette generator →

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