#5F3CD0#5F3CD0

#5F3CD0 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.0% C 0.213 H 286.4°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5F3CD0
RGBrgb(95, 60, 208)
HSLhsl(254, 61%, 53%)
HSVhsv(254, 71%, 82%)
CMYKcmyk(54.3%, 71.2%, 0%, 18.4%)
CIE-LABlab(38.23, 51.87, -71.10)
CIE-LCHlch(38.23, 88.01, 306.11°)
OKLaboklab(49.03% 0.0603 -0.2045)
OKLCHoklch(49.03% 0.213 286.4)
XYZxyz(17.7169, 10.2177, 60.7009)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3CD0 #ADD03C
analogous
#3C63D0 #5F3CD0 #A93CD0
triadic
#5F3CD0 #D05F3C #3CD05F
tetradic
#5F3CD0 #D03C63 #ADD03C #3CD0A9
square
#5F3CD0 #D03C63 #ADD03C #3CD0A9
split-complementary
#5F3CD0 #D0A93C #63D03C
monochromatic
#311C75 #4628A7 #5F3CD0 #876DDC #B09FE8

Accessibility & contrast

On white

6.90
#5F3CD0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5F3CD0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F3CD0
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3CD0#FFFFFF#000000##FFFFFF
##5F3CD01.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED4
Deuteranopia (green-blind)
#0056CD
Tritanopia (blue-blind)
#2E6482
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5f3cd0;
/* rgb */ color: rgb(95, 60, 208);
/* oklch */ color: oklch(49.0% 0.213 286.4);
Tailwind
colors: {
  custom: {
    50: '#9775e0',
    500: '#5f3cd0',
    950: '#000000',
  },
}
SCSS
$custom: #5f3cd0;
$custom-light: #9775e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3cd0",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 208
  },
  "hsl": {
    "h": 254.189,
    "s": 61.157,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49029,
    "c": 0.2132,
    "h": 286.4
  },
  "luminance": 0.10219
}

Semantic roles & 50–950 ramp

primary
#5F3CD0
secondary
#C5D494
accent
#E444BE
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F3CD0

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

Preview Lab → · Contrast checker → · Palette generator →

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