#5F3DD9#5F3DD9

#5F3DD9 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.0% C 0.223 H 285.0°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5F3DD9
RGBrgb(95, 61, 217)
HSLhsl(253, 67%, 55%)
HSVhsv(253, 72%, 85%)
CMYKcmyk(56.2%, 71.9%, 0%, 14.9%)
CIE-LABlab(39.21, 53.93, -74.69)
CIE-LCHlch(39.21, 92.12, 305.83°)
OKLaboklab(49.96% 0.0576 -0.215)
OKLCHoklch(49.96% 0.223 285)
XYZxyz(18.9086, 10.7790, 66.7164)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DD9 #B7D93D
analogous
#3D69D9 #5F3DD9 #AD3DD9
triadic
#5F3DD9 #D95F3D #3DD95F
tetradic
#5F3DD9 #D93D69 #B7D93D #3DD9AD
square
#5F3DD9 #D93D69 #B7D93D #3DD9AD
split-complementary
#5F3DD9 #D9AD3D #69D93D
monochromatic
#301982 #4324B5 #5F3DD9 #8970E3 #B3A3ED

Accessibility & contrast

On white

6.65
#5F3DD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5F3DD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3DD9
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DD9#FFFFFF#000000##FFFFFF
##5F3DD91.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DE
Deuteranopia (green-blind)
#0057D6
Tritanopia (blue-blind)
#226787
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f3dd9;
/* rgb */ color: rgb(95, 61, 217);
/* oklch */ color: oklch(50.0% 0.223 285.0);
Tailwind
colors: {
  custom: {
    50: '#9976e6',
    500: '#5f3dd9',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dd9;
$custom-light: #9976e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dd9",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 217
  },
  "hsl": {
    "h": 253.077,
    "s": 67.241,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49963,
    "c": 0.2226,
    "h": 285
  },
  "luminance": 0.1078
}

Semantic roles & 50–950 ramp

primary
#5F3DD9
secondary
#CCDA98
accent
#EA3EC5
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3DD9

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

Preview Lab → · Contrast checker → · Palette generator →

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