#5F4EAF#5F4EAF

#5F4EAF is a mid, vivid violet. Relative luminance 0.110; OKLCH L 49.2% C 0.149 H 287.7°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#5F4EAF
RGBrgb(95, 78, 175)
HSLhsl(251, 38%, 50%)
HSVhsv(251, 55%, 69%)
CMYKcmyk(45.7%, 55.4%, 0%, 31.4%)
CIE-LABlab(39.54, 31.88, -49.68)
CIE-LCHlch(39.54, 59.02, 302.69°)
OKLaboklab(49.19% 0.0452 -0.1415)
OKLCHoklch(49.19% 0.149 287.7)
XYZxyz(15.1794, 10.9762, 41.8680)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4EAF #9EAF4E
analogous
#4E6EAF #5F4EAF #8F4EAF
triadic
#5F4EAF #AF5F4E #4EAF5F
tetradic
#5F4EAF #AF4E6E #9EAF4E #4EAF8F
square
#5F4EAF #AF4E6E #9EAF4E #4EAF8F
split-complementary
#5F4EAF #AF8F4E #6EAF4E
monochromatic
#31285A #483B85 #5F4EAF #8578C3 #ABA2D6

Accessibility & contrast

On white

6.57
#5F4EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5F4EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4EAF
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4EAF#FFFFFF#000000##FFFFFF
##5F4EAF1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195FB2
Deuteranopia (green-blind)
#195BAD
Tritanopia (blue-blind)
#466377
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f4eaf;
/* rgb */ color: rgb(95, 78, 175);
/* oklch */ color: oklch(49.2% 0.149 287.7);
Tailwind
colors: {
  custom: {
    50: '#9280c7',
    500: '#5f4eaf',
    950: '#000000',
  },
}
SCSS
$custom: #5f4eaf;
$custom-light: #9280c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4eaf",
  "rgb": {
    "r": 95,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 250.515,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4919,
    "c": 0.14857,
    "h": 287.7
  },
  "luminance": 0.10977
}

Semantic roles & 50–950 ramp

primary
#5F4EAF
secondary
#BBC396
accent
#CE5ABA
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5F4EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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