#5F34CD#5F34CD

#5F34CD is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.8% C 0.218 H 288.0°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#5F34CD
RGBrgb(95, 52, 205)
HSLhsl(257, 60%, 50%)
HSVhsv(257, 75%, 80%)
CMYKcmyk(53.7%, 74.6%, 0%, 19.6%)
CIE-LABlab(36.55, 55.01, -72.13)
CIE-LCHlch(36.55, 90.71, 307.33°)
OKLaboklab(47.76% 0.0673 -0.2074)
OKLCHoklch(47.76% 0.218 288)
XYZxyz(16.9635, 9.2958, 58.6462)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34CD #A2CD34
analogous
#3455CD #5F34CD #AC34CD
triadic
#5F34CD #CD5F34 #34CD5F
tetradic
#5F34CD #CD3455 #A2CD34 #34CDAC
square
#5F34CD #CD3455 #A2CD34 #34CDAC
split-complementary
#5F34CD #CDAC34 #55CD34
monochromatic
#311B6C #48279D #5F34CD #8665D9 #AC96E5

Accessibility & contrast

On white

7.34
#5F34CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5F34CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34CD
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34CD#FFFFFF#000000##FFFFFF
##5F34CD1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#0052CA
Tritanopia (blue-blind)
#325E7E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5f34cd;
/* rgb */ color: rgb(95, 52, 205);
/* oklch */ color: oklch(47.8% 0.218 288.0);
Tailwind
colors: {
  custom: {
    50: '#9870dd',
    500: '#5f34cd',
    950: '#000000',
  },
}
SCSS
$custom: #5f34cd;
$custom-light: #9870dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34cd",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 205
  },
  "hsl": {
    "h": 256.863,
    "s": 60.474,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47758,
    "c": 0.21808,
    "h": 288
  },
  "luminance": 0.09297
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F34CD

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

Preview Lab → · Contrast checker → · Palette generator →

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