#5F34BF#5F34BF

#5F34BF is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.5% C 0.202 H 290.4°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5F34BF
RGBrgb(95, 52, 191)
HSLhsl(259, 57%, 48%)
HSVhsv(259, 73%, 75%)
CMYKcmyk(50.3%, 72.8%, 0%, 25.1%)
CIE-LABlab(35.30, 51.15, -66.00)
CIE-LCHlch(35.30, 83.50, 307.78°)
OKLaboklab(46.5% 0.0706 -0.1895)
OKLCHoklch(46.5% 0.202 290.4)
XYZxyz(15.3486, 8.6498, 50.1410)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34BF #94BF34
analogous
#344EBF #5F34BF #A434BF
triadic
#5F34BF #BF5F34 #34BF5F
tetradic
#5F34BF #BF344E #94BF34 #34BFA4
square
#5F34BF #BF344E #94BF34 #34BFA4
split-complementary
#5F34BF #BFA434 #4EBF34
monochromatic
#2F1A5F #47278F #5F34BF #825DD3 #A78DE0

Accessibility & contrast

On white

7.69
#5F34BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5F34BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34BF
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34BF#FFFFFF#000000##FFFFFF
##5F34BF1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C3
Deuteranopia (green-blind)
#0050BC
Tritanopia (blue-blind)
#3E5976
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f34bf;
/* rgb */ color: rgb(95, 52, 191);
/* oklch */ color: oklch(46.5% 0.202 290.4);
Tailwind
colors: {
  custom: {
    50: '#9670d3',
    500: '#5f34bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f34bf;
$custom-light: #9670d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34bf",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 191
  },
  "hsl": {
    "h": 258.561,
    "s": 57.202,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46498,
    "c": 0.20221,
    "h": 290.4
  },
  "luminance": 0.0865
}

Semantic roles & 50–950 ramp

primary
#5F34BF
secondary
#B5CA84
accent
#E047B1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F34BF

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

Preview Lab → · Contrast checker → · Palette generator →

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