#5F3DC0#5F3DC0

#5F3DC0 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.8% C 0.193 H 288.8°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5F3DC0
RGBrgb(95, 61, 192)
HSLhsl(256, 52%, 50%)
HSVhsv(256, 68%, 75%)
CMYKcmyk(50.5%, 68.2%, 0%, 24.7%)
CIE-LABlab(37.07, 46.75, -63.69)
CIE-LCHlch(37.07, 79.01, 306.28°)
OKLaboklab(47.78% 0.0623 -0.1828)
OKLCHoklch(47.78% 0.193 288.8)
XYZxyz(15.8997, 9.5754, 50.8694)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3DC0 #9EC03D
analogous
#3D5CC0 #5F3DC0 #A13DC0
triadic
#5F3DC0 #C05F3D #3DC05F
tetradic
#5F3DC0 #C03D5C #9EC03D #3DC0A1
square
#5F3DC0 #C03D5C #9EC03D #3DC0A1
split-complementary
#5F3DC0 #C0A13D #5CC03D
monochromatic
#311F63 #482E92 #5F3DC0 #856AD0 #AB99DF

Accessibility & contrast

On white

7.20
#5F3DC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5F3DC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3DC0
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3DC0#FFFFFF#000000##FFFFFF
##5F3DC01.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC4
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#3C5E7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5f3dc0;
/* rgb */ color: rgb(95, 61, 192);
/* oklch */ color: oklch(47.8% 0.193 288.8);
Tailwind
colors: {
  custom: {
    50: '#9575d4',
    500: '#5f3dc0',
    950: '#000000',
  },
}
SCSS
$custom: #5f3dc0;
$custom-light: #9575d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3dc0",
  "rgb": {
    "r": 95,
    "g": 61,
    "b": 192
  },
  "hsl": {
    "h": 255.573,
    "s": 51.779,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47783,
    "c": 0.1931,
    "h": 288.8
  },
  "luminance": 0.09576
}

Semantic roles & 50–950 ramp

primary
#5F3DC0
secondary
#BBCA8E
accent
#DB4DB6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F3DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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