#5B7A15#5B7A15

#5B7A15 is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.6% C 0.128 H 126.1°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#5B7A15
RGBrgb(91, 122, 21)
HSLhsl(78, 71%, 28%)
HSVhsv(78, 83%, 48%)
CMYKcmyk(25.4%, 0%, 82.8%, 52.2%)
CIE-LABlab(47.23, -25.90, 47.08)
CIE-LCHlch(47.23, 53.74, 118.82°)
OKLaboklab(53.63% -0.0752 0.1032)
OKLCHoklch(53.63% 0.128 126.1)
XYZxyz(11.4094, 16.1972, 3.2346)
Luminance0.1620 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7A15 #34157A
analogous
#7A6615 #5B7A15 #287A15
triadic
#5B7A15 #155B7A #7A155B
tetradic
#5B7A15 #157A66 #34157A #7A1528
square
#5B7A15 #157A66 #34157A #7A1528
split-complementary
#5B7A15 #15287A #66157A
monochromatic
#131A04 #34460C #5B7A15 #82AE1E #A6DB2E

Accessibility & contrast

On white

4.95
#5B7A15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#5B7A15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7A15
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7A15#FFFFFF#000000##FFFFFF
##5B7A151.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#7D7020
Tritanopia (blue-blind)
#5F7468
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b7a15;
/* rgb */ color: rgb(91, 122, 21);
/* oklch */ color: oklch(53.6% 0.128 126.1);
Tailwind
colors: {
  custom: {
    50: '#8da05d',
    500: '#5b7a15',
    950: '#000000',
  },
}
SCSS
$custom: #5b7a15;
$custom-light: #8da05d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7a15",
  "rgb": {
    "r": 91,
    "g": 122,
    "b": 21
  },
  "hsl": {
    "h": 78.416,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53634,
    "c": 0.12771,
    "h": 126.1
  },
  "luminance": 0.16197
}

Semantic roles & 50–950 ramp

primary
#5B7A15
secondary
#5F3BAF
accent
#3AED71
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0E05
muted
#7D7E79

Preview Lab

Preview with #5B7A15

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

Preview Lab → · Contrast checker → · Palette generator →

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