#5F4BBF#5F4BBF

#5F4BBF is a mid, vivid violet. Relative luminance 0.112; OKLCH L 49.9% C 0.174 H 286.1°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5F4BBF
RGBrgb(95, 75, 191)
HSLhsl(250, 48%, 52%)
HSVhsv(250, 61%, 75%)
CMYKcmyk(50.3%, 60.7%, 0%, 25.1%)
CIE-LABlab(39.96, 38.49, -58.41)
CIE-LCHlch(39.96, 69.95, 303.39°)
OKLaboklab(49.85% 0.0484 -0.1672)
OKLCHoklch(49.85% 0.174 286.1)
XYZxyz(16.6366, 11.2258, 50.5703)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BBF #ABBF4B
analogous
#4B71BF #5F4BBF #994BBF
triadic
#5F4BBF #BF5F4B #4BBF5F
tetradic
#5F4BBF #BF4B71 #ABBF4B #4BBF99
square
#5F4BBF #BF4B71 #ABBF4B #4BBF99
split-complementary
#5F4BBF #BF994B #71BF4B
monochromatic
#31266A #473697 #5F4BBF #8778CF #AFA5DF

Accessibility & contrast

On white

6.47
#5F4BBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5F4BBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BBF
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BBF#FFFFFF#000000##FFFFFF
##5F4BBF1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#005BBD
Tritanopia (blue-blind)
#3C667E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f4bbf;
/* rgb */ color: rgb(95, 75, 191);
/* oklch */ color: oklch(49.9% 0.174 286.1);
Tailwind
colors: {
  custom: {
    50: '#947ed3',
    500: '#5f4bbf',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bbf;
$custom-light: #947ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bbf",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 191
  },
  "hsl": {
    "h": 250.345,
    "s": 47.541,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49853,
    "c": 0.17408,
    "h": 286.1
  },
  "luminance": 0.11227
}

Semantic roles & 50–950 ramp

primary
#5F4BBF
secondary
#C3CC9A
accent
#D751C0
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5F4BBF

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

Preview Lab → · Contrast checker → · Palette generator →

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