#5F34CA#5F34CA

#5F34CA is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.215 H 288.5°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#5F34CA
RGBrgb(95, 52, 202)
HSLhsl(257, 59%, 50%)
HSVhsv(257, 74%, 79%)
CMYKcmyk(53%, 74.3%, 0%, 20.8%)
CIE-LABlab(36.28, 54.19, -70.83)
CIE-LCHlch(36.28, 89.18, 307.42°)
OKLaboklab(47.48% 0.068 -0.2036)
OKLCHoklch(47.48% 0.215 288.5)
XYZxyz(16.6048, 9.1523, 56.7573)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34CA #9FCA34
analogous
#3454CA #5F34CA #AA34CA
triadic
#5F34CA #CA5F34 #34CA5F
tetradic
#5F34CA #CA3454 #9FCA34 #34CAAA
square
#5F34CA #CA3454 #9FCA34 #34CAAA
split-complementary
#5F34CA #CAAA34 #54CA34
monochromatic
#311B69 #482799 #5F34CA #8564D7 #AB95E4

Accessibility & contrast

On white

7.42
#5F34CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5F34CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34CA
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34CA#FFFFFF#000000##FFFFFF
##5F34CA1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#355D7D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f34ca;
/* rgb */ color: rgb(95, 52, 202);
/* oklch */ color: oklch(47.5% 0.215 288.5);
Tailwind
colors: {
  custom: {
    50: '#9770db',
    500: '#5f34ca',
    950: '#000000',
  },
}
SCSS
$custom: #5f34ca;
$custom-light: #9770db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34ca",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 257.2,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47484,
    "c": 0.2147,
    "h": 288.5
  },
  "luminance": 0.09153
}

Semantic roles & 50–950 ramp

primary
#5F34CA
secondary
#BBCF8B
accent
#E246B5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5F34CA

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

Preview Lab → · Contrast checker → · Palette generator →

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