#5B7010#5B7010

#5B7010 is a mid, moderate yellow-green. Relative luminance 0.139; OKLCH L 51.0% C 0.117 H 122.1°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5B7010
RGBrgb(91, 112, 16)
HSLhsl(73, 75%, 25%)
HSVhsv(73, 86%, 44%)
CMYKcmyk(18.7%, 0%, 85.7%, 56.1%)
CIE-LABlab(44.02, -21.07, 45.69)
CIE-LCHlch(44.02, 50.32, 114.75°)
OKLaboklab(51.02% -0.0624 0.0994)
OKLCHoklch(51.02% 0.117 122.1)
XYZxyz(10.2023, 13.8499, 2.6259)
Luminance0.1385 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7010 #251070
analogous
#705510 #5B7010 #2B7010
triadic
#5B7010 #105B70 #70105B
tetradic
#5B7010 #107055 #251070 #70102B
square
#5B7010 #107055 #251070 #70102B
split-complementary
#5B7010 #102B70 #551070
monochromatic
#161B04 #2F3A08 #5B7010 #87A618 #B2DB1F

Accessibility & contrast

On white

5.57
#5B7010 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5B7010 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7010
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7010#FFFFFF#000000##FFFFFF
##5B70101.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776900
Deuteranopia (green-blind)
#75681B
Tritanopia (blue-blind)
#606A5F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5b7010;
/* rgb */ color: rgb(91, 112, 16);
/* oklch */ color: oklch(51.0% 0.117 122.1);
Tailwind
colors: {
  custom: {
    50: '#8d9959',
    500: '#5b7010',
    950: '#000000',
  },
}
SCSS
$custom: #5b7010;
$custom-light: #8d9959;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7010",
  "rgb": {
    "r": 91,
    "g": 112,
    "b": 16
  },
  "hsl": {
    "h": 73.125,
    "s": 75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.51023,
    "c": 0.11737,
    "h": 122.1
  },
  "luminance": 0.1385
}

Semantic roles & 50–950 ramp

primary
#5B7010
secondary
#4D34A8
accent
#36F25F
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B7010

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

Preview Lab → · Contrast checker → · Palette generator →

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