#5B702F#5B702F

#5B702F is a mid, moderate yellow-green. Relative luminance 0.140; OKLCH L 51.3% C 0.094 H 124.6°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5B702F
RGBrgb(91, 112, 47)
HSLhsl(79, 41%, 31%)
HSVhsv(79, 58%, 44%)
CMYKcmyk(18.7%, 0%, 58%, 56.1%)
CIE-LABlab(44.26, -18.90, 33.07)
CIE-LCHlch(44.26, 38.09, 119.74°)
OKLaboklab(51.3% -0.0535 0.0776)
OKLCHoklch(51.3% 0.094 124.6)
XYZxyz(10.6217, 14.0176, 4.8349)
Luminance0.1402 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B702F #442F70
analogous
#70642F #5B702F #3A702F
triadic
#5B702F #2F5B70 #702F5B
tetradic
#5B702F #2F7064 #442F70 #702F3A
square
#5B702F #2F7064 #442F70 #702F3A
split-complementary
#5B702F #2F3A70 #642F70
monochromatic
#151A0B #38451D #5B702F #7E9B41 #9DBB5E

Accessibility & contrast

On white

5.52
#5B702F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5B702F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B702F
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B702F#FFFFFF#000000##FFFFFF
##5B702F1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766929
Deuteranopia (green-blind)
#736833
Tritanopia (blue-blind)
#5F6B62
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5b702f;
/* rgb */ color: rgb(91, 112, 47);
/* oklch */ color: oklch(51.3% 0.094 124.6);
Tailwind
colors: {
  custom: {
    50: '#8b996a',
    500: '#5b702f',
    950: '#000000',
  },
}
SCSS
$custom: #5b702f;
$custom-light: #8b996a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b702f",
  "rgb": {
    "r": 91,
    "g": 112,
    "b": 47
  },
  "hsl": {
    "h": 79.385,
    "s": 40.881,
    "l": 31.176
  },
  "oklch": {
    "l": 0.51295,
    "c": 0.09423,
    "h": 124.6
  },
  "luminance": 0.14018
}

Semantic roles & 50–950 ramp

primary
#5B702F
secondary
#715AA1
accent
#57D17E
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0D06
muted
#7D7E7A

Preview Lab

Preview with #5B702F

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

Preview Lab → · Contrast checker → · Palette generator →

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