#5F34CF#5F34CF

#5F34CF is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.9% C 0.220 H 287.6°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5F34CF
RGBrgb(95, 52, 207)
HSLhsl(257, 62%, 51%)
HSVhsv(257, 75%, 81%)
CMYKcmyk(54.1%, 74.9%, 0%, 18.8%)
CIE-LABlab(36.73, 55.56, -72.99)
CIE-LCHlch(36.73, 91.73, 307.28°)
OKLaboklab(47.94% 0.0667 -0.21)
OKLCHoklch(47.94% 0.22 287.6)
XYZxyz(17.2065, 9.3930, 59.9258)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34CF #A4CF34
analogous
#3456CF #5F34CF #AC34CF
triadic
#5F34CF #CF5F34 #34CF5F
tetradic
#5F34CF #CF3456 #A4CF34 #34CFAC
square
#5F34CF #CF3456 #A4CF34 #34CFAC
split-complementary
#5F34CF #CFAC34 #56CF34
monochromatic
#321A6E #4826A0 #5F34CF #8665DB #AD97E6

Accessibility & contrast

On white

7.29
#5F34CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5F34CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34CF
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34CF#FFFFFF#000000##FFFFFF
##5F34CF1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#305F7F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f34cf;
/* rgb */ color: rgb(95, 52, 207);
/* oklch */ color: oklch(47.9% 0.220 287.6);
Tailwind
colors: {
  custom: {
    50: '#9870df',
    500: '#5f34cf',
    950: '#000000',
  },
}
SCSS
$custom: #5f34cf;
$custom-light: #9870df;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34cf",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 207
  },
  "hsl": {
    "h": 256.645,
    "s": 61.753,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47942,
    "c": 0.22032,
    "h": 287.6
  },
  "luminance": 0.09394
}

Semantic roles & 50–950 ramp

primary
#5F34CF
secondary
#BFD28D
accent
#E543B8
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5F34CF

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

Preview Lab → · Contrast checker → · Palette generator →

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