#5F3FD9#5F3FD9

#5F3FD9 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.2% C 0.221 H 284.7°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#5F3FD9
RGBrgb(95, 63, 217)
HSLhsl(252, 67%, 55%)
HSVhsv(252, 71%, 85%)
CMYKcmyk(56.2%, 71%, 0%, 14.9%)
CIE-LABlab(39.57, 52.90, -74.08)
CIE-LCHlch(39.57, 91.03, 305.53°)
OKLaboklab(50.22% 0.0561 -0.2132)
OKLCHoklch(50.22% 0.221 284.7)
XYZxyz(19.0174, 10.9965, 66.7526)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FD9 #B9D93F
analogous
#3F6CD9 #5F3FD9 #AC3FD9
triadic
#5F3FD9 #D95F3F #3FD95F
tetradic
#5F3FD9 #D93F6C #B9D93F #3FD9AC
square
#5F3FD9 #D93F6C #B9D93F #3FD9AC
split-complementary
#5F3FD9 #D9AC3F #6CD93F
monochromatic
#301A84 #4324B7 #5F3FD9 #8A72E3 #B4A5ED

Accessibility & contrast

On white

6.56
#5F3FD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5F3FD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FD9
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FD9#FFFFFF#000000##FFFFFF
##5F3FD91.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DE
Deuteranopia (green-blind)
#0058D6
Tritanopia (blue-blind)
#226888
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f3fd9;
/* rgb */ color: rgb(95, 63, 217);
/* oklch */ color: oklch(50.2% 0.221 284.7);
Tailwind
colors: {
  custom: {
    50: '#9977e6',
    500: '#5f3fd9',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fd9;
$custom-light: #9977e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fd9",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 217
  },
  "hsl": {
    "h": 252.468,
    "s": 66.957,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50224,
    "c": 0.2205,
    "h": 284.7
  },
  "luminance": 0.10998
}

Semantic roles & 50–950 ramp

primary
#5F3FD9
secondary
#CDDA9A
accent
#EA3EC6
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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