#5F34BD#5F34BD

#5F34BD is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.3% C 0.200 H 290.8°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5F34BD
RGBrgb(95, 52, 189)
HSLhsl(259, 57%, 47%)
HSVhsv(259, 72%, 74%)
CMYKcmyk(49.7%, 72.5%, 0%, 25.9%)
CIE-LABlab(35.13, 50.60, -65.10)
CIE-LCHlch(35.13, 82.46, 307.86°)
OKLaboklab(46.32% 0.0711 -0.1869)
OKLCHoklch(46.32% 0.2 290.8)
XYZxyz(15.1300, 8.5624, 48.9898)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34BD #92BD34
analogous
#344EBD #5F34BD #A334BD
triadic
#5F34BD #BD5F34 #34BD5F
tetradic
#5F34BD #BD344E #92BD34 #34BDA3
square
#5F34BD #BD344E #92BD34 #34BDA3
split-complementary
#5F34BD #BDA334 #4EBD34
monochromatic
#2F1A5D #47278D #5F34BD #815CD2 #A68CDF

Accessibility & contrast

On white

7.74
#5F34BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5F34BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34BD
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34BD#FFFFFF#000000##FFFFFF
##5F34BD1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#0050BA
Tritanopia (blue-blind)
#3F5875
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f34bd;
/* rgb */ color: rgb(95, 52, 189);
/* oklch */ color: oklch(46.3% 0.200 290.8);
Tailwind
colors: {
  custom: {
    50: '#956fd2',
    500: '#5f34bd',
    950: '#000000',
  },
}
SCSS
$custom: #5f34bd;
$custom-light: #956fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34bd",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 189
  },
  "hsl": {
    "h": 258.832,
    "s": 56.846,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46322,
    "c": 0.19992,
    "h": 290.8
  },
  "luminance": 0.08563
}

Semantic roles & 50–950 ramp

primary
#5F34BD
secondary
#B4CA83
accent
#E048B0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F34BD

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

Preview Lab → · Contrast checker → · Palette generator →

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