#5F3BD6#5F3BD6

#5F3BD6 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.4% C 0.221 H 285.7°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#5F3BD6
RGBrgb(95, 59, 214)
HSLhsl(254, 65%, 54%)
HSVhsv(254, 72%, 84%)
CMYKcmyk(55.6%, 72.4%, 0%, 16.1%)
CIE-LABlab(38.58, 54.09, -74.00)
CIE-LCHlch(38.58, 91.66, 306.17°)
OKLaboklab(49.44% 0.0598 -0.213)
OKLCHoklch(49.44% 0.221 285.7)
XYZxyz(18.4172, 10.4148, 64.6451)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BD6 #B2D63B
analogous
#3B64D6 #5F3BD6 #AC3BD6
triadic
#5F3BD6 #D65F3B #3BD65F
tetradic
#5F3BD6 #D63B64 #B2D63B #3BD6AC
square
#5F3BD6 #D63B64 #B2D63B #3BD6AC
split-complementary
#5F3BD6 #D6AC3B #64D63B
monochromatic
#311A7D #4525AF #5F3BD6 #886EE1 #B2A0EB

Accessibility & contrast

On white

6.81
#5F3BD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5F3BD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3BD6
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BD6#FFFFFF#000000##FFFFFF
##5F3BD61.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDB
Deuteranopia (green-blind)
#0056D3
Tritanopia (blue-blind)
#276585
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f3bd6;
/* rgb */ color: rgb(95, 59, 214);
/* oklch */ color: oklch(49.4% 0.221 285.7);
Tailwind
colors: {
  custom: {
    50: '#9875e4',
    500: '#5f3bd6',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bd6;
$custom-light: #9875e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bd6",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 214
  },
  "hsl": {
    "h": 253.935,
    "s": 65.401,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49436,
    "c": 0.22121,
    "h": 285.7
  },
  "luminance": 0.10416
}

Semantic roles & 50–950 ramp

primary
#5F3BD6
secondary
#C8D895
accent
#E83FC1
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5F3BD6

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

Preview Lab → · Contrast checker → · Palette generator →

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