#5F3BD9#5F3BD9

#5F3BD9 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.7% C 0.225 H 285.3°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5F3BD9
RGBrgb(95, 59, 217)
HSLhsl(254, 68%, 54%)
HSVhsv(254, 73%, 85%)
CMYKcmyk(56.2%, 72.8%, 0%, 14.9%)
CIE-LABlab(38.85, 54.94, -75.28)
CIE-LCHlch(38.85, 93.20, 306.12°)
OKLaboklab(49.71% 0.0591 -0.2167)
OKLCHoklch(49.71% 0.225 285.3)
XYZxyz(18.8039, 10.5695, 66.6815)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BD9 #B5D93B
analogous
#3B66D9 #5F3BD9 #AE3BD9
triadic
#5F3BD9 #D95F3B #3BD95F
tetradic
#5F3BD9 #D93B66 #B5D93B #3BD9AE
square
#5F3BD9 #D93B66 #B5D93B #3BD9AE
split-complementary
#5F3BD9 #D9AE3B #66D93B
monochromatic
#311981 #4423B4 #5F3BD9 #896EE3 #B3A2ED

Accessibility & contrast

On white

6.74
#5F3BD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5F3BD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3BD9
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BD9#FFFFFF#000000##FFFFFF
##5F3BD91.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DE
Deuteranopia (green-blind)
#0057D6
Tritanopia (blue-blind)
#226687
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5f3bd9;
/* rgb */ color: rgb(95, 59, 217);
/* oklch */ color: oklch(49.7% 0.225 285.3);
Tailwind
colors: {
  custom: {
    50: '#9975e6',
    500: '#5f3bd9',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bd9;
$custom-light: #9975e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bd9",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 217
  },
  "hsl": {
    "h": 253.671,
    "s": 67.521,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49708,
    "c": 0.22465,
    "h": 285.3
  },
  "luminance": 0.10571
}

Semantic roles & 50–950 ramp

primary
#5F3BD9
secondary
#CADA96
accent
#EA3DC3
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5F3BD9

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

Preview Lab → · Contrast checker → · Palette generator →

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