#5F5818#5F5818

#5F5818 is a mid, moderate yellow. Relative luminance 0.095; OKLCH L 45.4% C 0.083 H 103.0°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#5F5818
RGBrgb(95, 88, 24)
HSLhsl(54, 60%, 23%)
HSVhsv(54, 75%, 37%)
CMYKcmyk(0%, 7.4%, 74.7%, 62.7%)
CIE-LABlab(36.89, -5.49, 36.29)
CIE-LCHlch(36.89, 36.70, 98.60°)
OKLaboklab(45.41% -0.0186 0.0809)
OKLCHoklch(45.41% 0.083 103)
XYZxyz(8.3743, 9.4786, 2.2524)
Luminance0.0948 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5818 #181F5F
analogous
#5F3418 #5F5818 #425F18
triadic
#5F5818 #185F58 #58185F
tetradic
#5F5818 #185F34 #181F5F #5F1842
square
#5F5818 #185F34 #181F5F #5F1842
split-complementary
#5F5818 #18425F #34185F
monochromatic
#181706 #2E2B0C #5F5818 #908524 #C1B331

Accessibility & contrast

On white

7.25
#5F5818 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5F5818 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F5818
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5818#FFFFFF#000000##FFFFFF
##5F58181.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#61550E
Deuteranopia (green-blind)
#63581C
Tritanopia (blue-blind)
#67514B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f5818;
/* rgb */ color: rgb(95, 88, 24);
/* oklch */ color: oklch(45.4% 0.083 103.0);
Tailwind
colors: {
  custom: {
    50: '#8f8659',
    500: '#5f5818',
    950: '#000000',
  },
}
SCSS
$custom: #5f5818;
$custom-light: #8f8659;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5818",
  "rgb": {
    "r": 95,
    "g": 88,
    "b": 24
  },
  "hsl": {
    "h": 54.085,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.45407,
    "c": 0.08299,
    "h": 103
  },
  "luminance": 0.09478
}

Semantic roles & 50–950 ramp

primary
#5F5818
secondary
#3D4695
accent
#55E345
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B04
muted
#7E7C79

Preview Lab

Preview with #5F5818

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

Preview Lab → · Contrast checker → · Palette generator →

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