#5A8826#5A8826

#5A8826 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.3% C 0.136 H 131.4°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5A8826
RGBrgb(90, 136, 38)
HSLhsl(88, 56%, 34%)
HSVhsv(88, 72%, 53%)
CMYKcmyk(33.8%, 0%, 72.1%, 46.7%)
CIE-LABlab(51.75, -31.98, 45.31)
CIE-LCHlch(51.75, 55.46, 125.21°)
OKLaboklab(57.32% -0.0903 0.1024)
OKLCHoklch(57.32% 0.136 131.4)
XYZxyz(13.3703, 19.9214, 4.9741)
Luminance0.1992 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8826 #542688
analogous
#888526 #5A8826 #298826
triadic
#5A8826 #265A88 #88265A
tetradic
#5A8826 #268885 #542688 #882629
square
#5A8826 #268885 #542688 #882629
split-complementary
#5A8826 #262988 #852688
monochromatic
#1B280B #3A5819 #5A8826 #7AB833 #98D058

Accessibility & contrast

On white

4.21
#5A8826 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#5A8826 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8826
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8826#FFFFFF#000000##000000
##5A88261.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E16
Deuteranopia (green-blind)
#887A2F
Tritanopia (blue-blind)
#5C8275
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a8826;
/* rgb */ color: rgb(90, 136, 38);
/* oklch */ color: oklch(57.3% 0.136 131.4);
Tailwind
colors: {
  custom: {
    50: '#8cab67',
    500: '#5a8826',
    950: '#000000',
  },
}
SCSS
$custom: #5a8826;
$custom-light: #8cab67;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8826",
  "rgb": {
    "r": 90,
    "g": 136,
    "b": 38
  },
  "hsl": {
    "h": 88.163,
    "s": 56.322,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57324,
    "c": 0.13648,
    "h": 131.4
  },
  "luminance": 0.19922
}

Semantic roles & 50–950 ramp

primary
#5A8826
secondary
#8255B5
accent
#48E08F
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #5A8826

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

Preview Lab → · Contrast checker → · Palette generator →

#5A8826 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva