#5F5918#5F5918

#5F5918 is a mid, moderate yellow. Relative luminance 0.096; OKLCH L 45.6% C 0.084 H 104.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#5F5918
RGBrgb(95, 89, 24)
HSLhsl(55, 60%, 23%)
HSVhsv(55, 75%, 37%)
CMYKcmyk(0%, 6.3%, 74.7%, 62.7%)
CIE-LABlab(37.20, -6.07, 36.59)
CIE-LCHlch(37.20, 37.09, 99.43°)
OKLaboklab(45.65% -0.0203 0.0815)
OKLCHoklch(45.65% 0.084 104)
XYZxyz(8.4569, 9.6439, 2.2800)
Luminance0.0964 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5918 #181E5F
analogous
#5F3518 #5F5918 #415F18
triadic
#5F5918 #185F59 #59185F
tetradic
#5F5918 #185F35 #181E5F #5F1841
square
#5F5918 #185F35 #181E5F #5F1841
split-complementary
#5F5918 #18415F #35185F
monochromatic
#181706 #2E2B0C #5F5918 #908724 #C1B531

Accessibility & contrast

On white

7.17
#5F5918 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5F5918 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F5918
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5918#FFFFFF#000000##FFFFFF
##5F59181.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61560E
Deuteranopia (green-blind)
#63591C
Tritanopia (blue-blind)
#67524C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f5918;
/* rgb */ color: rgb(95, 89, 24);
/* oklch */ color: oklch(45.6% 0.084 104.0);
Tailwind
colors: {
  custom: {
    50: '#8f875a',
    500: '#5f5918',
    950: '#000000',
  },
}
SCSS
$custom: #5f5918;
$custom-light: #8f875a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5918",
  "rgb": {
    "r": 95,
    "g": 89,
    "b": 24
  },
  "hsl": {
    "h": 54.93,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.4565,
    "c": 0.08401,
    "h": 104
  },
  "luminance": 0.09644
}

Semantic roles & 50–950 ramp

primary
#5F5918
secondary
#3D4595
accent
#52E345
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B04
muted
#7E7C79

Preview Lab

Preview with #5F5918

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

Preview Lab → · Contrast checker → · Palette generator →

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