#5F5B18#5F5B18

#5F5B18 is a mid, moderate yellow. Relative luminance 0.100; OKLCH L 46.1% C 0.086 H 105.9°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5F5B18
RGBrgb(95, 91, 24)
HSLhsl(57, 60%, 23%)
HSVhsv(57, 75%, 37%)
CMYKcmyk(0%, 4.2%, 74.7%, 62.7%)
CIE-LABlab(37.81, -7.24, 37.20)
CIE-LCHlch(37.81, 37.90, 101.02°)
OKLaboklab(46.14% -0.0236 0.0828)
OKLCHoklch(46.14% 0.086 105.9)
XYZxyz(8.6256, 9.9813, 2.3362)
Luminance0.0998 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5B18 #181C5F
analogous
#5F3718 #5F5B18 #3F5F18
triadic
#5F5B18 #185F5B #5B185F
tetradic
#5F5B18 #185F37 #181C5F #5F183F
square
#5F5B18 #185F37 #181C5F #5F183F
split-complementary
#5F5B18 #183F5F #37185F
monochromatic
#181706 #2E2C0C #5F5B18 #908A24 #C1B931

Accessibility & contrast

On white

7.01
#5F5B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5F5B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5B18
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5B18#FFFFFF#000000##FFFFFF
##5F5B181.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#63570D
Deuteranopia (green-blind)
#655A1D
Tritanopia (blue-blind)
#66554E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f5b18;
/* rgb */ color: rgb(95, 91, 24);
/* oklch */ color: oklch(46.1% 0.086 105.9);
Tailwind
colors: {
  custom: {
    50: '#8f895a',
    500: '#5f5b18',
    950: '#000000',
  },
}
SCSS
$custom: #5f5b18;
$custom-light: #8f895a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5b18",
  "rgb": {
    "r": 95,
    "g": 91,
    "b": 24
  },
  "hsl": {
    "h": 56.62,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.46138,
    "c": 0.0861,
    "h": 105.9
  },
  "luminance": 0.09981
}

Semantic roles & 50–950 ramp

primary
#5F5B18
secondary
#3D4295
accent
#4EE345
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B04
muted
#7E7C79

Preview Lab

Preview with #5F5B18

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

Preview Lab → · Contrast checker → · Palette generator →

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