#5F3FDE#5F3FDE

#5F3FDE is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.7% C 0.226 H 284.1°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#5F3FDE
RGBrgb(95, 63, 222)
HSLhsl(252, 71%, 56%)
HSVhsv(252, 72%, 87%)
CMYKcmyk(57.2%, 71.6%, 0%, 12.9%)
CIE-LABlab(40.02, 54.34, -76.22)
CIE-LCHlch(40.02, 93.61, 305.49°)
OKLaboklab(50.67% 0.0551 -0.2195)
OKLCHoklch(50.67% 0.226 284.1)
XYZxyz(19.6776, 11.2606, 70.2297)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FDE #BEDE3F
analogous
#3F6EDE #5F3FDE #AE3FDE
triadic
#5F3FDE #DE5F3F #3FDE5F
tetradic
#5F3FDE #DE3F6E #BEDE3F #3FDEAE
square
#5F3FDE #DE3F6E #BEDE3F #3FDEAE
split-complementary
#5F3FDE #DEAE3F #6EDE3F
monochromatic
#2F188B #4121BF #5F3FDE #8B73E7 #B6A7F0

Accessibility & contrast

On white

6.46
#5F3FDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#5F3FDE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FDE
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FDE#FFFFFF#000000##FFFFFF
##5F3FDE1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E3
Deuteranopia (green-blind)
#0059DB
Tritanopia (blue-blind)
#186A8B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f3fde;
/* rgb */ color: rgb(95, 63, 222);
/* oklch */ color: oklch(50.7% 0.226 284.1);
Tailwind
colors: {
  custom: {
    50: '#9977ea',
    500: '#5f3fde',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fde;
$custom-light: #9977ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fde",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 222
  },
  "hsl": {
    "h": 252.075,
    "s": 70.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50673,
    "c": 0.22631,
    "h": 284.1
  },
  "luminance": 0.11262
}

Semantic roles & 50–950 ramp

primary
#5F3FDE
secondary
#D0DD9B
accent
#ED3AC9
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3FDE

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

Preview Lab → · Contrast checker → · Palette generator →

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