#5F3FD8#5F3FD8

#5F3FD8 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.1% C 0.219 H 284.9°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5F3FD8
RGBrgb(95, 63, 216)
HSLhsl(253, 66%, 55%)
HSVhsv(253, 71%, 85%)
CMYKcmyk(56%, 70.8%, 0%, 15.3%)
CIE-LABlab(39.49, 52.61, -73.65)
CIE-LCHlch(39.49, 90.51, 305.54°)
OKLaboklab(50.14% 0.0563 -0.212)
OKLCHoklch(50.14% 0.219 284.9)
XYZxyz(18.8877, 10.9447, 66.0697)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FD8 #B8D83F
analogous
#3F6CD8 #5F3FD8 #AC3FD8
triadic
#5F3FD8 #D85F3F #3FD85F
tetradic
#5F3FD8 #D83F6C #B8D83F #3FD8AC
square
#5F3FD8 #D83F6C #B8D83F #3FD8AC
split-complementary
#5F3FD8 #D8AC3F #6CD83F
monochromatic
#301A82 #4325B5 #5F3FD8 #8972E2 #B4A5ED

Accessibility & contrast

On white

6.58
#5F3FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5F3FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3FD8
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FD8#FFFFFF#000000##FFFFFF
##5F3FD81.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DD
Deuteranopia (green-blind)
#0058D5
Tritanopia (blue-blind)
#236887
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5f3fd8;
/* rgb */ color: rgb(95, 63, 216);
/* oklch */ color: oklch(50.1% 0.219 284.9);
Tailwind
colors: {
  custom: {
    50: '#9877e5',
    500: '#5f3fd8',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fd8;
$custom-light: #9877e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fd8",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 216
  },
  "hsl": {
    "h": 252.549,
    "s": 66.234,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50135,
    "c": 0.21934,
    "h": 284.9
  },
  "luminance": 0.10946
}

Semantic roles & 50–950 ramp

primary
#5F3FD8
secondary
#CCDA99
accent
#E93FC5
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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