#5F4ABB#5F4ABB

#5F4ABB is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.4% C 0.170 H 287.0°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#5F4ABB
RGBrgb(95, 74, 187)
HSLhsl(251, 45%, 51%)
HSVhsv(251, 60%, 73%)
CMYKcmyk(49.2%, 60.4%, 0%, 26.7%)
CIE-LABlab(39.44, 37.88, -56.90)
CIE-LCHlch(39.44, 68.36, 303.65°)
OKLaboklab(49.38% 0.0497 -0.1628)
OKLCHoklch(49.38% 0.17 287)
XYZxyz(16.1351, 10.9176, 48.2612)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4ABB #A6BB4A
analogous
#4A6DBB #5F4ABB #974ABB
triadic
#5F4ABB #BB5F4A #4ABB5F
tetradic
#5F4ABB #BB4A6D #A6BB4A #4ABB97
square
#5F4ABB #BB4A6D #A6BB4A #4ABB97
split-complementary
#5F4ABB #BB974A #6DBB4A
monochromatic
#322665 #473791 #5F4ABB #8676CC #AEA3DC

Accessibility & contrast

On white

6.60
#5F4ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5F4ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4ABB
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4ABB#FFFFFF#000000##FFFFFF
##5F4ABB1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#3F647B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f4abb;
/* rgb */ color: rgb(95, 74, 187);
/* oklch */ color: oklch(49.4% 0.170 287.0);
Tailwind
colors: {
  custom: {
    50: '#937dd0',
    500: '#5f4abb',
    950: '#000000',
  },
}
SCSS
$custom: #5f4abb;
$custom-light: #937dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4abb",
  "rgb": {
    "r": 95,
    "g": 74,
    "b": 187
  },
  "hsl": {
    "h": 251.15,
    "s": 45.382,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49382,
    "c": 0.1702,
    "h": 287
  },
  "luminance": 0.10918
}

Semantic roles & 50–950 ramp

primary
#5F4ABB
secondary
#C0C997
accent
#D553BD
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #5F4ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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