#5F507A#5F507A

#5F507A is a mid, moderate violet. Relative luminance 0.096; OKLCH L 46.4% C 0.069 H 300.1°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5F507A
RGBrgb(95, 80, 122)
HSLhsl(261, 21%, 40%)
HSVhsv(261, 34%, 48%)
CMYKcmyk(22.1%, 34.4%, 0%, 52.2%)
CIE-LABlab(37.07, 15.65, -21.57)
CIE-LCHlch(37.07, 26.65, 305.97°)
OKLaboklab(46.36% 0.0346 -0.0596)
OKLCHoklch(46.36% 0.069 300.1)
XYZxyz(11.1001, 9.5753, 19.6720)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F507A #6B7A50
analogous
#50567A #5F507A #74507A
triadic
#5F507A #7A5F50 #507A5F
tetradic
#5F507A #7A5056 #6B7A50 #507A74
square
#5F507A #7A5056 #6B7A50 #507A74
split-complementary
#5F507A #7A7450 #567A50
monochromatic
#252030 #423855 #5F507A #7C6A9D #9D8FB5

Accessibility & contrast

On white

7.20
#5F507A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5F507A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F507A
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F507A#FFFFFF#000000##FFFFFF
##5F507A1.007.202.917.20
#FFFFFF7.201.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46577C
Deuteranopia (green-blind)
#495779
Tritanopia (blue-blind)
#5A575F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f507a;
/* rgb */ color: rgb(95, 80, 122);
/* oklch */ color: oklch(46.4% 0.069 300.1);
Tailwind
colors: {
  custom: {
    50: '#8d81a0',
    500: '#5f507a',
    950: '#000000',
  },
}
SCSS
$custom: #5f507a;
$custom-light: #8d81a0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f507a",
  "rgb": {
    "r": 95,
    "g": 80,
    "b": 122
  },
  "hsl": {
    "h": 261.429,
    "s": 20.792,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46363,
    "c": 0.06894,
    "h": 300.1
  },
  "luminance": 0.09575
}

Semantic roles & 50–950 ramp

primary
#5F507A
secondary
#97A383
accent
#BD6AA0
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0C0A0E
muted
#7D7C7E

Preview Lab

Preview with #5F507A

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

Preview Lab → · Contrast checker → · Palette generator →

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