#5F5F18#5F5F18

#5F5F18 is a mid, moderate yellow. Relative luminance 0.107; OKLCH L 47.1% C 0.091 H 109.4°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#5F5F18
RGBrgb(95, 95, 24)
HSLhsl(60, 60%, 23%)
HSVhsv(60, 75%, 37%)
CMYKcmyk(0%, 0%, 74.7%, 62.7%)
CIE-LABlab(39.04, -9.55, 38.41)
CIE-LCHlch(39.04, 39.58, 103.96°)
OKLaboklab(47.12% -0.0301 0.0854)
OKLCHoklch(47.12% 0.091 109.4)
XYZxyz(8.9767, 10.6835, 2.4532)
Luminance0.1068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F5F18 #18185F
analogous
#5F3B18 #5F5F18 #3B5F18
triadic
#5F5F18 #185F5F #5F185F
tetradic
#5F5F18 #185F3B #18185F #5F183B
square
#5F5F18 #185F3B #18185F #5F183B
split-complementary
#5F5F18 #183B5F #3B185F
monochromatic
#181806 #2E2E0C #5F5F18 #909024 #C1C131

Accessibility & contrast

On white

6.70
#5F5F18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5F5F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F5F18
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F5F18#FFFFFF#000000##FFFFFF
##5F5F181.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#675B0C
Deuteranopia (green-blind)
#685D1D
Tritanopia (blue-blind)
#665951
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f5f18;
/* rgb */ color: rgb(95, 95, 24);
/* oklch */ color: oklch(47.1% 0.091 109.4);
Tailwind
colors: {
  custom: {
    50: '#8f8c5a',
    500: '#5f5f18',
    950: '#000000',
  },
}
SCSS
$custom: #5f5f18;
$custom-light: #8f8c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f5f18",
  "rgb": {
    "r": 95,
    "g": 95,
    "b": 24
  },
  "hsl": {
    "h": 60,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.47122,
    "c": 0.09051,
    "h": 109.4
  },
  "luminance": 0.10683
}

Semantic roles & 50–950 ramp

primary
#5F5F18
secondary
#3D3D95
accent
#45E345
background
#F9F8F5
surface
#F1F0E9
border
#CBCBC5
text
#0D0C04
muted
#7E7D79

Preview Lab

Preview with #5F5F18

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

Preview Lab → · Contrast checker → · Palette generator →

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