#5B6912#5B6912

#5B6912 is a mid, moderate yellow. Relative luminance 0.124; OKLCH L 49.2% C 0.108 H 118.8°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5B6912
RGBrgb(91, 105, 18)
HSLhsl(70, 71%, 24%)
HSVhsv(70, 83%, 41%)
CMYKcmyk(13.3%, 0%, 82.9%, 58.8%)
CIE-LABlab(41.80, -17.30, 43.11)
CIE-LCHlch(41.80, 46.45, 111.86°)
OKLaboklab(49.24% -0.0519 0.0943)
OKLCHoklch(49.24% 0.108 118.8)
XYZxyz(9.4754, 12.3710, 2.4608)
Luminance0.1237 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6912 #201269
analogous
#694C12 #5B6912 #306912
triadic
#5B6912 #125B69 #69125B
tetradic
#5B6912 #12694C #201269 #691230
square
#5B6912 #12694C #201269 #691230
split-complementary
#5B6912 #123069 #4C1269
monochromatic
#171A04 #2E3509 #5B6912 #889D1B #B6D124

Accessibility & contrast

On white

6.04
#5B6912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5B6912 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6912
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6912#FFFFFF#000000##FFFFFF
##5B69121.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706300
Deuteranopia (green-blind)
#6F631B
Tritanopia (blue-blind)
#616359
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b6912;
/* rgb */ color: rgb(91, 105, 18);
/* oklch */ color: oklch(49.2% 0.108 118.8);
Tailwind
colors: {
  custom: {
    50: '#8c9359',
    500: '#5b6912',
    950: '#000000',
  },
}
SCSS
$custom: #5b6912;
$custom-light: #8c9359;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6912",
  "rgb": {
    "r": 91,
    "g": 105,
    "b": 18
  },
  "hsl": {
    "h": 69.655,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.49238,
    "c": 0.10763,
    "h": 118.8
  },
  "luminance": 0.12371
}

Semantic roles & 50–950 ramp

primary
#5B6912
secondary
#4736A1
accent
#3AED57
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B6912

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

Preview Lab → · Contrast checker → · Palette generator →

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