#5B751B#5B751B

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

Color values

HEX#5B751B
RGBrgb(91, 117, 27)
HSLhsl(77, 63%, 28%)
HSVhsv(77, 77%, 46%)
CMYKcmyk(22.2%, 0%, 76.9%, 54.1%)
CIE-LABlab(45.67, -23.09, 43.57)
CIE-LCHlch(45.67, 49.31, 117.92°)
OKLaboklab(52.38% -0.067 0.0969)
OKLCHoklch(52.38% 0.118 124.7)
XYZxyz(10.8736, 15.0257, 3.3641)
Luminance0.1503 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B751B #351B75
analogous
#75621B #5B751B #2E751B
triadic
#5B751B #1B5B75 #751B5B
tetradic
#5B751B #1B7562 #351B75 #751B2E
square
#5B751B #1B7562 #351B75 #751B2E
split-complementary
#5B751B #1B2E75 #621B75
monochromatic
#131906 #344310 #5B751B #82A726 #A5D139

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B751B#FFFFFF#000000##FFFFFF
##5B751B1.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)
#7C6D08
Deuteranopia (green-blind)
#786C23
Tritanopia (blue-blind)
#606F64
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b751b;
/* rgb */ color: rgb(91, 117, 27);
/* oklch */ color: oklch(52.4% 0.118 124.7);
Tailwind
colors: {
  custom: {
    50: '#8c9c5f',
    500: '#5b751b',
    950: '#000000',
  },
}
SCSS
$custom: #5b751b;
$custom-light: #8c9c5f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b751b",
  "rgb": {
    "r": 91,
    "g": 117,
    "b": 27
  },
  "hsl": {
    "h": 77.333,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52379,
    "c": 0.11782,
    "h": 124.7
  },
  "luminance": 0.15026
}

Semantic roles & 50–950 ramp

primary
#5B751B
secondary
#6042A9
accent
#42E671
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B751B

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

Preview Lab → · Contrast checker → · Palette generator →

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