#5B7D18#5B7D18

#5B7D18 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.4% C 0.130 H 127.2°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5B7D18
RGBrgb(91, 125, 24)
HSLhsl(80, 68%, 29%)
HSVhsv(80, 81%, 49%)
CMYKcmyk(27.2%, 0%, 80.8%, 51%)
CIE-LABlab(48.21, -27.23, 47.02)
CIE-LCHlch(48.21, 54.33, 120.07°)
OKLaboklab(54.43% -0.0785 0.1036)
OKLCHoklch(54.43% 0.13 127.2)
XYZxyz(11.8129, 16.9571, 3.5147)
Luminance0.1696 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7D18 #3A187D
analogous
#7D6D18 #5B7D18 #297D18
triadic
#5B7D18 #185B7D #7D185B
tetradic
#5B7D18 #187D6D #3A187D #7D1829
square
#5B7D18 #187D6D #3A187D #7D1829
split-complementary
#5B7D18 #18297D #6D187D
monochromatic
#131A05 #364A0E #5B7D18 #80B022 #A2D937

Accessibility & contrast

On white

4.78
#5B7D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5B7D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7D18
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7D18#FFFFFF#000000##FFFFFF
##5B7D181.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7F7223
Tritanopia (blue-blind)
#5F776A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5b7d18;
/* rgb */ color: rgb(91, 125, 24);
/* oklch */ color: oklch(54.4% 0.130 127.2);
Tailwind
colors: {
  custom: {
    50: '#8da25e',
    500: '#5b7d18',
    950: '#000000',
  },
}
SCSS
$custom: #5b7d18;
$custom-light: #8da25e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7d18",
  "rgb": {
    "r": 91,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 80.198,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.5443,
    "c": 0.13004,
    "h": 127.2
  },
  "luminance": 0.16957
}

Semantic roles & 50–950 ramp

primary
#5B7D18
secondary
#663FB2
accent
#3DEB78
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5B7D18

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

Preview Lab → · Contrast checker → · Palette generator →

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