#5B6810#5B6810

#5B6810 is a mid, moderate yellow. Relative luminance 0.122; OKLCH L 49.0% C 0.107 H 118.2°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5B6810
RGBrgb(91, 104, 16)
HSLhsl(69, 73%, 24%)
HSVhsv(69, 85%, 41%)
CMYKcmyk(12.5%, 0%, 84.6%, 59.2%)
CIE-LABlab(41.47, -16.84, 43.45)
CIE-LCHlch(41.47, 46.60, 111.19°)
OKLaboklab(48.97% -0.0508 0.0946)
OKLCHoklch(48.97% 0.107 118.2)
XYZxyz(9.3585, 12.1623, 2.3447)
Luminance0.1216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6810 #1D1068
analogous
#684910 #5B6810 #2F6810
triadic
#5B6810 #105B68 #68105B
tetradic
#5B6810 #106849 #1D1068 #68102F
square
#5B6810 #106849 #1D1068 #68102F
split-complementary
#5B6810 #102F68 #491068
monochromatic
#171B04 #2D3308 #5B6810 #899D18 #B8D220

Accessibility & contrast

On white

6.12
#5B6810 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5B6810 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6810
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6810#FFFFFF#000000##FFFFFF
##5B68101.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706200
Deuteranopia (green-blind)
#6E6219
Tritanopia (blue-blind)
#616258
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b6810;
/* rgb */ color: rgb(91, 104, 16);
/* oklch */ color: oklch(49.0% 0.107 118.2);
Tailwind
colors: {
  custom: {
    50: '#8c9358',
    500: '#5b6810',
    950: '#000000',
  },
}
SCSS
$custom: #5b6810;
$custom-light: #8c9358;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6810",
  "rgb": {
    "r": 91,
    "g": 104,
    "b": 16
  },
  "hsl": {
    "h": 68.864,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.48971,
    "c": 0.10742,
    "h": 118.2
  },
  "luminance": 0.12162
}

Semantic roles & 50–950 ramp

primary
#5B6810
secondary
#4434A0
accent
#38F053
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B6810

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

Preview Lab → · Contrast checker → · Palette generator →

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