#5F4CB5#5F4CB5

#5F4CB5 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.3% C 0.160 H 287.4°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#5F4CB5
RGBrgb(95, 76, 181)
HSLhsl(251, 42%, 50%)
HSVhsv(251, 58%, 71%)
CMYKcmyk(47.5%, 58%, 0%, 29%)
CIE-LABlab(39.47, 34.89, -53.32)
CIE-LCHlch(39.47, 63.72, 303.19°)
OKLaboklab(49.27% 0.0476 -0.1523)
OKLCHoklch(49.27% 0.16 287.4)
XYZxyz(15.6418, 10.9373, 44.9940)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CB5 #A2B54C
analogous
#4C6DB5 #5F4CB5 #934CB5
triadic
#5F4CB5 #B55F4C #4CB55F
tetradic
#5F4CB5 #B54C6D #A2B54C #4CB593
square
#5F4CB5 #B54C6D #A2B54C #4CB593
split-complementary
#5F4CB5 #B5934C #6DB54C
monochromatic
#31275F #48398B #5F4CB5 #8677C7 #ACA3D9

Accessibility & contrast

On white

6.59
#5F4CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5F4CB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CB5
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CB5#FFFFFF#000000##FFFFFF
##5F4CB51.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060B8
Deuteranopia (green-blind)
#005AB3
Tritanopia (blue-blind)
#436479
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f4cb5;
/* rgb */ color: rgb(95, 76, 181);
/* oklch */ color: oklch(49.3% 0.160 287.4);
Tailwind
colors: {
  custom: {
    50: '#937fcc',
    500: '#5f4cb5',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cb5;
$custom-light: #937fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cb5",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 250.857,
    "s": 41.502,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49271,
    "c": 0.15952,
    "h": 287.4
  },
  "luminance": 0.10938
}

Semantic roles & 50–950 ramp

primary
#5F4CB5
secondary
#BDC697
accent
#D156BB
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A13
muted
#7E7C82

Preview Lab

Preview with #5F4CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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