#5F34CE#5F34CE

#5F34CE is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.9% C 0.219 H 287.8°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5F34CE
RGBrgb(95, 52, 206)
HSLhsl(257, 61%, 51%)
HSVhsv(257, 75%, 81%)
CMYKcmyk(53.9%, 74.8%, 0%, 19.2%)
CIE-LABlab(36.64, 55.29, -72.56)
CIE-LCHlch(36.64, 91.22, 307.31°)
OKLaboklab(47.85% 0.067 -0.2087)
OKLCHoklch(47.85% 0.219 287.8)
XYZxyz(17.0846, 9.3442, 59.2839)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34CE #A3CE34
analogous
#3456CE #5F34CE #AC34CE
triadic
#5F34CE #CE5F34 #34CE5F
tetradic
#5F34CE #CE3456 #A3CE34 #34CEAC
square
#5F34CE #CE3456 #A3CE34 #34CEAC
split-complementary
#5F34CE #CEAC34 #56CE34
monochromatic
#321A6D #48269F #5F34CE #8665DA #AD97E6

Accessibility & contrast

On white

7.32
#5F34CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5F34CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34CE
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34CE#FFFFFF#000000##FFFFFF
##5F34CE1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD2
Deuteranopia (green-blind)
#0052CB
Tritanopia (blue-blind)
#315F7F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f34ce;
/* rgb */ color: rgb(95, 52, 206);
/* oklch */ color: oklch(47.9% 0.219 287.8);
Tailwind
colors: {
  custom: {
    50: '#9870de',
    500: '#5f34ce',
    950: '#000000',
  },
}
SCSS
$custom: #5f34ce;
$custom-light: #9870de;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34ce",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 206
  },
  "hsl": {
    "h": 256.753,
    "s": 61.111,
    "l": 50.588
  },
  "oklch": {
    "l": 0.4785,
    "c": 0.2192,
    "h": 287.8
  },
  "luminance": 0.09345
}

Semantic roles & 50–950 ramp

primary
#5F34CE
secondary
#BED18D
accent
#E444B7
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F34CE

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

Preview Lab → · Contrast checker → · Palette generator →

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