#5F3BD4#5F3BD4

#5F3BD4 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.3% C 0.219 H 286.0°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5F3BD4
RGBrgb(95, 59, 212)
HSLhsl(254, 64%, 53%)
HSVhsv(254, 72%, 83%)
CMYKcmyk(55.2%, 72.2%, 0%, 16.9%)
CIE-LABlab(38.40, 53.52, -73.14)
CIE-LCHlch(38.40, 90.63, 306.20°)
OKLaboklab(49.26% 0.0603 -0.2105)
OKLCHoklch(49.26% 0.219 286)
XYZxyz(18.1634, 10.3133, 63.3082)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BD4 #B0D43B
analogous
#3B63D4 #5F3BD4 #AC3BD4
triadic
#5F3BD4 #D45F3B #3BD45F
tetradic
#5F3BD4 #D43B63 #B0D43B #3BD4AC
square
#5F3BD4 #D43B63 #B0D43B #3BD4AC
split-complementary
#5F3BD4 #D4AC3B #63D43B
monochromatic
#311B7A #4526AC #5F3BD4 #886DDF #B19FEA

Accessibility & contrast

On white

6.86
#5F3BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5F3BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3BD4
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BD4#FFFFFF#000000##FFFFFF
##5F3BD41.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED8
Deuteranopia (green-blind)
#0056D1
Tritanopia (blue-blind)
#296584
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f3bd4;
/* rgb */ color: rgb(95, 59, 212);
/* oklch */ color: oklch(49.3% 0.219 286.0);
Tailwind
colors: {
  custom: {
    50: '#9874e2',
    500: '#5f3bd4',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bd4;
$custom-light: #9874e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bd4",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 212
  },
  "hsl": {
    "h": 254.118,
    "s": 64.017,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49256,
    "c": 0.21891,
    "h": 286
  },
  "luminance": 0.10314
}

Semantic roles & 50–950 ramp

primary
#5F3BD4
secondary
#C7D694
accent
#E741C0
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5F3BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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