#5F5218#5F5218

#5F5218 is a dark, moderate yellow. Relative luminance 0.085; OKLCH L 44.0% C 0.077 H 96.3°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5F5218
RGBrgb(95, 82, 24)
HSLhsl(49, 60%, 23%)
HSVhsv(49, 75%, 37%)
CMYKcmyk(0%, 13.7%, 74.7%, 62.7%)
CIE-LABlab(35.07, -1.91, 34.46)
CIE-LCHlch(35.07, 34.51, 93.17°)
OKLaboklab(43.96% -0.0085 0.077)
OKLCHoklch(43.96% 0.077 96.3)
XYZxyz(7.9019, 8.5338, 2.0950)
Luminance0.0853 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5218 #18255F
analogous
#5F2E18 #5F5218 #485F18
triadic
#5F5218 #185F52 #52185F
tetradic
#5F5218 #185F2E #18255F #5F1848
square
#5F5218 #185F2E #18255F #5F1848
split-complementary
#5F5218 #18485F #2E185F
monochromatic
#181506 #2E280C #5F5218 #907C24 #C1A631

Accessibility & contrast

On white

7.76
#5F5218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5F5218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F5218
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5218#FFFFFF#000000##FFFFFF
##5F52181.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5010
Deuteranopia (green-blind)
#5E541B
Tritanopia (blue-blind)
#674B46
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f5218;
/* rgb */ color: rgb(95, 82, 24);
/* oklch */ color: oklch(44.0% 0.077 96.3);
Tailwind
colors: {
  custom: {
    50: '#8f8259',
    500: '#5f5218',
    950: '#000000',
  },
}
SCSS
$custom: #5f5218;
$custom-light: #8f8259;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5218",
  "rgb": {
    "r": 95,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 49.014,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.43964,
    "c": 0.07749,
    "h": 96.3
  },
  "luminance": 0.08533
}

Semantic roles & 50–950 ramp

primary
#5F5218
secondary
#3D4D95
accent
#62E345
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A04
muted
#7E7C79

Preview Lab

Preview with #5F5218

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

Preview Lab → · Contrast checker → · Palette generator →

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