#5B751F#5B751F

#5B751F is a mid, moderate yellow-green. Relative luminance 0.150; OKLCH L 52.4% C 0.115 H 125.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#5B751F
RGBrgb(91, 117, 31)
HSLhsl(78, 58%, 29%)
HSVhsv(78, 74%, 46%)
CMYKcmyk(22.2%, 0%, 73.5%, 54.1%)
CIE-LABlab(45.70, -22.84, 42.04)
CIE-LCHlch(45.70, 47.84, 118.52°)
OKLaboklab(52.41% -0.066 0.0944)
OKLCHoklch(52.41% 0.115 125)
XYZxyz(10.9231, 15.0455, 3.6247)
Luminance0.1505 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B751F #391F75
analogous
#75641F #5B751F #30751F
triadic
#5B751F #1F5B75 #751F5B
tetradic
#5B751F #1F7564 #391F75 #751F30
square
#5B751F #1F7564 #391F75 #751F30
split-complementary
#5B751F #1F3075 #641F75
monochromatic
#131806 #354512 #5B751F #81A52C #A3CD42

Accessibility & contrast

On white

5.24
#5B751F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5B751F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B751F
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B751F#FFFFFF#000000##FFFFFF
##5B751F1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D11
Deuteranopia (green-blind)
#786C26
Tritanopia (blue-blind)
#5F6F64
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b751f;
/* rgb */ color: rgb(91, 117, 31);
/* oklch */ color: oklch(52.4% 0.115 125.0);
Tailwind
colors: {
  custom: {
    50: '#8c9c61',
    500: '#5b751f',
    950: '#000000',
  },
}
SCSS
$custom: #5b751f;
$custom-light: #8c9c61;
$custom-dark: #000000;
JSON
{
  "hex": "#5b751f",
  "rgb": {
    "r": 91,
    "g": 117,
    "b": 31
  },
  "hsl": {
    "h": 78.14,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52409,
    "c": 0.11514,
    "h": 125
  },
  "luminance": 0.15046
}

Semantic roles & 50–950 ramp

primary
#5B751F
secondary
#6547A9
accent
#46E175
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B751F

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

Preview Lab → · Contrast checker → · Palette generator →

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