#5B6312#5B6312

#5B6312 is a mid, moderate yellow. Relative luminance 0.112; OKLCH L 47.7% C 0.100 H 115.3°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5B6312
RGBrgb(91, 99, 18)
HSLhsl(66, 69%, 23%)
HSVhsv(66, 82%, 39%)
CMYKcmyk(8.1%, 0%, 81.8%, 61.2%)
CIE-LABlab(39.90, -14.03, 41.38)
CIE-LCHlch(39.90, 43.70, 108.72°)
OKLaboklab(47.71% -0.0429 0.0906)
OKLCHoklch(47.71% 0.1 115.3)
XYZxyz(8.8857, 11.1917, 2.2643)
Luminance0.1119 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6312 #1A1263
analogous
#634212 #5B6312 #326312
triadic
#5B6312 #125B63 #63125B
tetradic
#5B6312 #126342 #1A1263 #631232
square
#5B6312 #126342 #1A1263 #631232
split-complementary
#5B6312 #123263 #421263
monochromatic
#181A05 #2B2F09 #5B6312 #8B971B #BACB25

Accessibility & contrast

On white

6.49
#5B6312 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5B6312 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6312
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6312#FFFFFF#000000##FFFFFF
##5B63121.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5D00
Deuteranopia (green-blind)
#6A5F19
Tritanopia (blue-blind)
#615D54
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b6312;
/* rgb */ color: rgb(91, 99, 18);
/* oklch */ color: oklch(47.7% 0.100 115.3);
Tailwind
colors: {
  custom: {
    50: '#8c8f58',
    500: '#5b6312',
    950: '#000000',
  },
}
SCSS
$custom: #5b6312;
$custom-light: #8c8f58;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6312",
  "rgb": {
    "r": 91,
    "g": 99,
    "b": 18
  },
  "hsl": {
    "h": 65.926,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.47711,
    "c": 0.10026,
    "h": 115.3
  },
  "luminance": 0.11191
}

Semantic roles & 50–950 ramp

primary
#5B6312
secondary
#40369B
accent
#3CEC4D
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5B6312

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

Preview Lab → · Contrast checker → · Palette generator →

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