#5F3CDB#5F3CDB

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

Color values

HEX#5F3CDB
RGBrgb(95, 60, 219)
HSLhsl(253, 69%, 55%)
HSVhsv(253, 73%, 86%)
CMYKcmyk(56.6%, 72.6%, 0%, 14.1%)
CIE-LABlab(39.20, 55.01, -75.84)
CIE-LCHlch(39.20, 93.69, 305.95°)
OKLaboklab(50.02% 0.058 -0.2184)
OKLCHoklch(50.02% 0.226 284.9)
XYZxyz(19.1175, 10.7779, 68.0771)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CDB #B8DB3C
analogous
#3C68DB #5F3CDB #AF3CDB
triadic
#5F3CDB #DB5F3C #3CDB5F
tetradic
#5F3CDB #DB3C68 #B8DB3C #3CDBAF
square
#5F3CDB #DB3C68 #B8DB3C #3CDBAF
split-complementary
#5F3CDB #DBAF3C #68DB3C
monochromatic
#301884 #4322B8 #5F3CDB #8970E5 #B4A3EE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F3CDB#FFFFFF#000000##FFFFFF
##5F3CDB1.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)
#0061E0
Deuteranopia (green-blind)
#0057D8
Tritanopia (blue-blind)
#1F6888
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5f3cdb;
/* rgb */ color: rgb(95, 60, 219);
/* oklch */ color: oklch(50.0% 0.226 284.9);
Tailwind
colors: {
  custom: {
    50: '#9975e7',
    500: '#5f3cdb',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cdb;
$custom-light: #9975e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cdb",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 219
  },
  "hsl": {
    "h": 253.208,
    "s": 68.831,
    "l": 54.706
  },
  "oklch": {
    "l": 0.50016,
    "c": 0.22593,
    "h": 284.9
  },
  "luminance": 0.10779
}

Semantic roles & 50–950 ramp

primary
#5F3CDB
secondary
#CCDB98
accent
#EC3CC5
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5F3CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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