#5F4BB2#5F4BB2

#5F4BB2 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 48.9% C 0.157 H 288.1°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#5F4BB2
RGBrgb(95, 75, 178)
HSLhsl(252, 41%, 50%)
HSVhsv(252, 58%, 70%)
CMYKcmyk(46.6%, 57.9%, 0%, 30.2%)
CIE-LABlab(39.03, 34.59, -52.27)
CIE-LCHlch(39.03, 62.68, 303.50°)
OKLaboklab(48.88% 0.0488 -0.1492)
OKLCHoklch(48.88% 0.157 288.1)
XYZxyz(15.2690, 10.6788, 43.3675)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BB2 #9EB24B
analogous
#4B6BB2 #5F4BB2 #924BB2
triadic
#5F4BB2 #B25F4B #4BB25F
tetradic
#5F4BB2 #B24B6B #9EB24B #4BB292
square
#5F4BB2 #B24B6B #9EB24B #4BB292
split-complementary
#5F4BB2 #B2924B #6BB24B
monochromatic
#31275C #483987 #5F4BB2 #8575C5 #ABA0D7

Accessibility & contrast

On white

6.70
#5F4BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5F4BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BB2
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BB2#FFFFFF#000000##FFFFFF
##5F4BB21.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#015EB5
Deuteranopia (green-blind)
#0459B0
Tritanopia (blue-blind)
#456277
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f4bb2;
/* rgb */ color: rgb(95, 75, 178);
/* oklch */ color: oklch(48.9% 0.157 288.1);
Tailwind
colors: {
  custom: {
    50: '#927eca',
    500: '#5f4bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bb2;
$custom-light: #927eca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bb2",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 251.65,
    "s": 40.711,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48881,
    "c": 0.15693,
    "h": 288.1
  },
  "luminance": 0.10679
}

Semantic roles & 50–950 ramp

primary
#5F4BB2
secondary
#BBC495
accent
#D157B9
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5F4BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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