#5B7612#5B7612

#5B7612 is a mid, vivid yellow-green. Relative luminance 0.152; OKLCH L 52.6% C 0.124 H 124.6°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5B7612
RGBrgb(91, 118, 18)
HSLhsl(76, 74%, 27%)
HSVhsv(76, 85%, 46%)
CMYKcmyk(22.9%, 0%, 84.7%, 53.7%)
CIE-LABlab(45.94, -24.05, 46.82)
CIE-LCHlch(45.94, 52.63, 117.19°)
OKLaboklab(52.58% -0.0703 0.1022)
OKLCHoklch(52.58% 0.124 124.6)
XYZxyz(10.9021, 15.2246, 2.9364)
Luminance0.1522 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7612 #2D1276
analogous
#765F12 #5B7612 #297612
triadic
#5B7612 #125B76 #76125B
tetradic
#5B7612 #12765F #2D1276 #761229
square
#5B7612 #12765F #2D1276 #761229
split-complementary
#5B7612 #122976 #5F1276
monochromatic
#141B04 #32410A #5B7612 #84AB1A #ACDE25

Accessibility & contrast

On white

5.19
#5B7612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5B7612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7612
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7612#FFFFFF#000000##FFFFFF
##5B76121.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#7A6C1D
Tritanopia (blue-blind)
#607064
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b7612;
/* rgb */ color: rgb(91, 118, 18);
/* oklch */ color: oklch(52.6% 0.124 124.6);
Tailwind
colors: {
  custom: {
    50: '#8d9d5b',
    500: '#5b7612',
    950: '#000000',
  },
}
SCSS
$custom: #5b7612;
$custom-light: #8d9d5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7612",
  "rgb": {
    "r": 91,
    "g": 118,
    "b": 18
  },
  "hsl": {
    "h": 76.2,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.52583,
    "c": 0.12404,
    "h": 124.6
  },
  "luminance": 0.15225
}

Semantic roles & 50–950 ramp

primary
#5B7612
secondary
#5737AD
accent
#38F069
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0E04
muted
#7D7E79

Preview Lab

Preview with #5B7612

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

Preview Lab → · Contrast checker → · Palette generator →

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