#5F4BB3#5F4BB3

#5F4BB3 is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.0% C 0.158 H 287.9°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5F4BB3
RGBrgb(95, 75, 179)
HSLhsl(252, 41%, 50%)
HSVhsv(252, 58%, 70%)
CMYKcmyk(46.9%, 58.1%, 0%, 29.8%)
CIE-LABlab(39.10, 34.89, -52.74)
CIE-LCHlch(39.10, 63.24, 303.48°)
OKLaboklab(48.95% 0.0488 -0.1506)
OKLCHoklch(48.95% 0.158 287.9)
XYZxyz(15.3697, 10.7191, 43.8982)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BB3 #9FB34B
analogous
#4B6BB3 #5F4BB3 #934BB3
triadic
#5F4BB3 #B35F4B #4BB35F
tetradic
#5F4BB3 #B34B6B #9FB34B #4BB393
square
#5F4BB3 #B34B6B #9FB34B #4BB393
split-complementary
#5F4BB3 #B3934B #6BB34B
monochromatic
#31275D #483988 #5F4BB3 #8576C5 #ABA1D8

Accessibility & contrast

On white

6.68
#5F4BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F4BB3
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BB3#FFFFFF#000000##FFFFFF
##5F4BB31.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#446278
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f4bb3;
/* rgb */ color: rgb(95, 75, 179);
/* oklch */ color: oklch(49.0% 0.158 287.9);
Tailwind
colors: {
  custom: {
    50: '#927eca',
    500: '#5f4bb3',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bb3;
$custom-light: #927eca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bb3",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 179
  },
  "hsl": {
    "h": 251.538,
    "s": 40.945,
    "l": 49.804
  },
  "oklch": {
    "l": 0.48954,
    "c": 0.15826,
    "h": 287.9
  },
  "luminance": 0.1072
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F4BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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