#5B5918#5B5918

#5B5918 is a mid, moderate yellow. Relative luminance 0.094; OKLCH L 45.2% C 0.085 H 107.6°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#5B5918
RGBrgb(91, 89, 24)
HSLhsl(58, 58%, 23%)
HSVhsv(58, 74%, 36%)
CMYKcmyk(0%, 2.2%, 73.6%, 64.3%)
CIE-LABlab(36.81, -8.03, 36.08)
CIE-LCHlch(36.81, 36.96, 102.55°)
OKLaboklab(45.25% -0.0256 0.0806)
OKLCHoklch(45.25% 0.085 107.6)
XYZxyz(8.0519, 9.4351, 2.2610)
Luminance0.0944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5918 #181A5B
analogous
#5B3718 #5B5918 #3B5B18
triadic
#5B5918 #185B59 #59185B
tetradic
#5B5918 #185B37 #181A5B #5B183B
square
#5B5918 #185B37 #181A5B #5B183B
split-complementary
#5B5918 #183B5B #37185B
monochromatic
#181806 #2B2A0B #5B5918 #8B8825 #BCB832

Accessibility & contrast

On white

7.27
#5B5918 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5B5918 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B5918
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5918#FFFFFF#000000##FFFFFF
##5B59181.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61550E
Deuteranopia (green-blind)
#62581C
Tritanopia (blue-blind)
#62534C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b5918;
/* rgb */ color: rgb(91, 89, 24);
/* oklch */ color: oklch(45.2% 0.085 107.6);
Tailwind
colors: {
  custom: {
    50: '#8c8759',
    500: '#5b5918',
    950: '#000000',
  },
}
SCSS
$custom: #5b5918;
$custom-light: #8c8759;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5918",
  "rgb": {
    "r": 91,
    "g": 89,
    "b": 24
  },
  "hsl": {
    "h": 58.209,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.45249,
    "c": 0.08454,
    "h": 107.6
  },
  "luminance": 0.09435
}

Semantic roles & 50–950 ramp

primary
#5B5918
secondary
#3D4092
accent
#4BE146
background
#F8F8F5
surface
#F0EFE9
border
#CBCAC5
text
#0C0B04
muted
#7D7C79

Preview Lab

Preview with #5B5918

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

Preview Lab → · Contrast checker → · Palette generator →

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