#5F5915#5F5915

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

Color values

HEX#5F5915
RGBrgb(95, 89, 21)
HSLhsl(55, 64%, 23%)
HSVhsv(55, 78%, 37%)
CMYKcmyk(0%, 6.3%, 77.9%, 62.7%)
CIE-LABlab(37.17, -6.24, 37.84)
CIE-LCHlch(37.17, 38.35, 99.37°)
OKLaboklab(45.63% -0.0211 0.0835)
OKLCHoklch(45.63% 0.086 104.2)
XYZxyz(8.4274, 9.6321, 2.1246)
Luminance0.0963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5915 #151B5F
analogous
#5F3415 #5F5915 #405F15
triadic
#5F5915 #155F59 #59155F
tetradic
#5F5915 #155F34 #151B5F #5F1540
square
#5F5915 #155F34 #151B5F #5F1540
split-complementary
#5F5915 #15405F #34155F
monochromatic
#191706 #2D2A0A #5F5915 #918820 #C3B72B

Accessibility & contrast

On white

7.18
#5F5915 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F5915
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5915#FFFFFF#000000##FFFFFF
##5F59151.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625609
Deuteranopia (green-blind)
#64591A
Tritanopia (blue-blind)
#67524C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f5915;
/* rgb */ color: rgb(95, 89, 21);
/* oklch */ color: oklch(45.6% 0.086 104.2);
Tailwind
colors: {
  custom: {
    50: '#8f8758',
    500: '#5f5915',
    950: '#000000',
  },
}
SCSS
$custom: #5f5915;
$custom-light: #8f8758;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5915",
  "rgb": {
    "r": 95,
    "g": 89,
    "b": 21
  },
  "hsl": {
    "h": 55.135,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.45626,
    "c": 0.08617,
    "h": 104.2
  },
  "luminance": 0.09632
}

Semantic roles & 50–950 ramp

primary
#5F5915
secondary
#3A4196
accent
#4EE741
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B03
muted
#7E7C78

Preview Lab

Preview with #5F5915

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

Preview Lab → · Contrast checker → · Palette generator →

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