#538228#538228

#538228 is a mid, vivid yellow-green. Relative luminance 0.180; OKLCH L 55.3% C 0.131 H 132.9°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#538228
RGBrgb(83, 130, 40)
HSLhsl(91, 53%, 33%)
HSVhsv(91, 69%, 51%)
CMYKcmyk(36.2%, 0%, 69.2%, 49%)
CIE-LABlab(49.44, -31.72, 41.97)
CIE-LCHlch(49.44, 52.61, 127.09°)
OKLaboklab(55.35% -0.0889 0.0957)
OKLCHoklch(55.35% 0.131 132.9)
XYZxyz(11.9327, 17.9570, 4.8444)
Luminance0.1796 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#538228 #572882
analogous
#808228 #538228 #28822A
triadic
#538228 #285382 #822853
tetradic
#538228 #288082 #572882 #822A28
square
#538228 #288082 #572882 #822A28
split-complementary
#538228 #2A2882 #822880
monochromatic
#17240B #35531A #538228 #71B136 #90CC59

Accessibility & contrast

On white

4.57
#538228 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#538228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #538228
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##538228#FFFFFF#000000##000000
##5382281.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#87781B
Deuteranopia (green-blind)
#817430
Tritanopia (blue-blind)
#547D70
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #538228;
/* rgb */ color: rgb(83, 130, 40);
/* oklch */ color: oklch(55.3% 0.131 132.9);
Tailwind
colors: {
  custom: {
    50: '#87a667',
    500: '#538228',
    950: '#000000',
  },
}
SCSS
$custom: #538228;
$custom-light: #87a667;
$custom-dark: #000000;
JSON
{
  "hex": "#538228",
  "rgb": {
    "r": 83,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 91.333,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55346,
    "c": 0.13068,
    "h": 132.9
  },
  "luminance": 0.17957
}

Semantic roles & 50–950 ramp

primary
#538228
secondary
#8555B1
accent
#4BDC97
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #538228

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

Preview Lab → · Contrast checker → · Palette generator →

#538228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva