#5F4E7B#5F4E7B

#5F4E7B is a mid, moderate violet. Relative luminance 0.093; OKLCH L 46.0% C 0.074 H 300.9°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#5F4E7B
RGBrgb(95, 78, 123)
HSLhsl(263, 22%, 39%)
HSVhsv(263, 37%, 48%)
CMYKcmyk(22.8%, 36.6%, 0%, 51.8%)
CIE-LABlab(36.58, 17.17, -22.95)
CIE-LCHlch(36.58, 28.66, 306.80°)
OKLaboklab(46% 0.0381 -0.0636)
OKLCHoklch(46% 0.074 300.9)
XYZxyz(11.0181, 9.3117, 19.9519)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4E7B #6A7B4E
analogous
#4E547B #5F4E7B #764E7B
triadic
#5F4E7B #7B5F4E #4E7B5F
tetradic
#5F4E7B #7B4E54 #6A7B4E #4E7B76
square
#5F4E7B #7B4E54 #6A7B4E #4E7B76
split-complementary
#5F4E7B #7B764E #547B4E
monochromatic
#251F30 #423656 #5F4E7B #7C679F #9D8DB7

Accessibility & contrast

On white

7.34
#5F4E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5F4E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4E7B
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4E7B#FFFFFF#000000##FFFFFF
##5F4E7B1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#44567D
Deuteranopia (green-blind)
#47567A
Tritanopia (blue-blind)
#5A555F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f4e7b;
/* rgb */ color: rgb(95, 78, 123);
/* oklch */ color: oklch(46.0% 0.074 300.9);
Tailwind
colors: {
  custom: {
    50: '#8d7fa1',
    500: '#5f4e7b',
    950: '#000000',
  },
}
SCSS
$custom: #5f4e7b;
$custom-light: #8d7fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4e7b",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 123
  },
  "hsl": {
    "h": 262.667,
    "s": 22.388,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46003,
    "c": 0.07409,
    "h": 300.9
  },
  "luminance": 0.09312
}

Semantic roles & 50–950 ramp

primary
#5F4E7B
secondary
#97A381
accent
#BF699E
background
#F8F7F9
surface
#F0EEF2
border
#CBC9CC
text
#0C0A0F
muted
#7D7C7E

Preview Lab

Preview with #5F4E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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