#5F3DE1#5F3DE1

#5F3DE1 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.7% C 0.232 H 283.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5F3DE1
RGBrgb(95, 61, 225)
HSLhsl(252, 73%, 56%)
HSVhsv(252, 73%, 88%)
CMYKcmyk(57.8%, 72.9%, 0%, 11.8%)
CIE-LABlab(39.92, 56.22, -78.09)
CIE-LCHlch(39.92, 96.22, 305.75°)
OKLaboklab(50.69% 0.0559 -0.225)
OKLCHoklch(50.69% 0.232 283.9)
XYZxyz(19.9745, 11.2054, 72.3299)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DE1 #BFE13D
analogous
#3D6DE1 #5F3DE1 #B13DE1
triadic
#5F3DE1 #E15F3D #3DE15F
tetradic
#5F3DE1 #E13D6D #BFE13D #3DE1B1
square
#5F3DE1 #E13D6D #BFE13D #3DE1B1
split-complementary
#5F3DE1 #E1B13D #6DE13D
monochromatic
#2F168E #401EC3 #5F3DE1 #8B72E9 #B6A7F1

Accessibility & contrast

On white

6.48
#5F3DE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5F3DE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3DE1
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DE1#FFFFFF#000000##FFFFFF
##5F3DE11.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E6
Deuteranopia (green-blind)
#0059DE
Tritanopia (blue-blind)
#116B8C
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5f3de1;
/* rgb */ color: rgb(95, 61, 225);
/* oklch */ color: oklch(50.7% 0.232 283.9);
Tailwind
colors: {
  custom: {
    50: '#9a76ec',
    500: '#5f3de1',
    950: '#000000',
  },
}
SCSS
$custom: #5f3de1;
$custom-light: #9a76ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3de1",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 225
  },
  "hsl": {
    "h": 252.439,
    "s": 73.214,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5069,
    "c": 0.2318,
    "h": 283.9
  },
  "luminance": 0.11207
}

Semantic roles & 50–950 ramp

primary
#5F3DE1
secondary
#D1DF9B
accent
#F038CA
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3DE1

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

Preview Lab → · Contrast checker → · Palette generator →

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