#5B701F#5B701F

#5B701F is a mid, moderate yellow-green. Relative luminance 0.139; OKLCH L 51.1% C 0.108 H 122.9°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#5B701F
RGBrgb(91, 112, 31)
HSLhsl(76, 57%, 28%)
HSVhsv(76, 72%, 44%)
CMYKcmyk(18.7%, 0%, 72.3%, 56.1%)
CIE-LABlab(44.11, -20.26, 40.43)
CIE-LCHlch(44.11, 45.23, 116.62°)
OKLaboklab(51.12% -0.0589 0.091)
OKLCHoklch(51.12% 0.108 122.9)
XYZxyz(10.3560, 13.9114, 3.4356)
Luminance0.1391 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B701F #341F70
analogous
#705C1F #5B701F #32701F
triadic
#5B701F #1F5B70 #701F5B
tetradic
#5B701F #1F705C #341F70 #701F32
square
#5B701F #1F705C #341F70 #701F32
split-complementary
#5B701F #1F3270 #5C1F70
monochromatic
#131807 #344012 #5B701F #82A02C #A6CA3F

Accessibility & contrast

On white

5.55
#5B701F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5B701F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B701F
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B701F#FFFFFF#000000##FFFFFF
##5B701F1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776912
Deuteranopia (green-blind)
#746826
Tritanopia (blue-blind)
#606A60
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5b701f;
/* rgb */ color: rgb(91, 112, 31);
/* oklch */ color: oklch(51.1% 0.108 122.9);
Tailwind
colors: {
  custom: {
    50: '#8c9960',
    500: '#5b701f',
    950: '#000000',
  },
}
SCSS
$custom: #5b701f;
$custom-light: #8c9960;
$custom-dark: #000000;
JSON
{
  "hex": "#5b701f",
  "rgb": {
    "r": 91,
    "g": 112,
    "b": 31
  },
  "hsl": {
    "h": 75.556,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51123,
    "c": 0.10838,
    "h": 122.9
  },
  "luminance": 0.13911
}

Semantic roles & 50–950 ramp

primary
#5B701F
secondary
#5F47A4
accent
#48E06F
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0D05
muted
#7D7E79

Preview Lab

Preview with #5B701F

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

Preview Lab → · Contrast checker → · Palette generator →

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