#5B7E12#5B7E12

#5B7E12 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.7% C 0.134 H 127.1°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#5B7E12
RGBrgb(91, 126, 18)
HSLhsl(79, 75%, 28%)
HSVhsv(79, 86%, 49%)
CMYKcmyk(27.8%, 0%, 85.7%, 50.6%)
CIE-LABlab(48.50, -27.98, 49.07)
CIE-LCHlch(48.50, 56.49, 119.69°)
OKLaboklab(54.66% -0.081 0.107)
OKLCHoklch(54.66% 0.134 127.1)
XYZxyz(11.8845, 17.1893, 3.2639)
Luminance0.1719 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7E12 #35127E
analogous
#7E6B12 #5B7E12 #257E12
triadic
#5B7E12 #125B7E #7E125B
tetradic
#5B7E12 #127E6B #35127E #7E1225
square
#5B7E12 #127E6B #35127E #7E1225
split-complementary
#5B7E12 #12257E #6B127E
monochromatic
#131B04 #34480A #5B7E12 #82B41A #A5E12A

Accessibility & contrast

On white

4.73
#5B7E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#5B7E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7E12
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7E12#FFFFFF#000000##FFFFFF
##5B7E121.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#80731F
Tritanopia (blue-blind)
#5F786B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5b7e12;
/* rgb */ color: rgb(91, 126, 18);
/* oklch */ color: oklch(54.7% 0.134 127.1);
Tailwind
colors: {
  custom: {
    50: '#8da35c',
    500: '#5b7e12',
    950: '#000000',
  },
}
SCSS
$custom: #5b7e12;
$custom-light: #8da35c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7e12",
  "rgb": {
    "r": 91,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 79.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.54658,
    "c": 0.13418,
    "h": 127.1
  },
  "luminance": 0.1719
}

Semantic roles & 50–950 ramp

primary
#5B7E12
secondary
#6038B4
accent
#36F273
background
#F9FAF5
surface
#F1F4E9
border
#CBCEC5
text
#0D0F04
muted
#7E7F79

Preview Lab

Preview with #5B7E12

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

Preview Lab → · Contrast checker → · Palette generator →

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