#5F34BE#5F34BE

#5F34BE is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.4% C 0.201 H 290.6°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5F34BE
RGBrgb(95, 52, 190)
HSLhsl(259, 57%, 47%)
HSVhsv(259, 73%, 75%)
CMYKcmyk(50%, 72.6%, 0%, 25.5%)
CIE-LABlab(35.21, 50.88, -65.55)
CIE-LCHlch(35.21, 82.98, 307.82°)
OKLaboklab(46.41% 0.0708 -0.1882)
OKLCHoklch(46.41% 0.201 290.6)
XYZxyz(15.2389, 8.6060, 49.5634)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34BE #93BE34
analogous
#344EBE #5F34BE #A434BE
triadic
#5F34BE #BE5F34 #34BE5F
tetradic
#5F34BE #BE344E #93BE34 #34BEA4
square
#5F34BE #BE344E #93BE34 #34BEA4
split-complementary
#5F34BE #BEA434 #4EBE34
monochromatic
#2F1A5E #47278E #5F34BE #815DD3 #A78DE0

Accessibility & contrast

On white

7.72
#5F34BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5F34BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34BE
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34BE#FFFFFF#000000##FFFFFF
##5F34BE1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C2
Deuteranopia (green-blind)
#0050BB
Tritanopia (blue-blind)
#3F5976
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f34be;
/* rgb */ color: rgb(95, 52, 190);
/* oklch */ color: oklch(46.4% 0.201 290.6);
Tailwind
colors: {
  custom: {
    50: '#956fd3',
    500: '#5f34be',
    950: '#000000',
  },
}
SCSS
$custom: #5f34be;
$custom-light: #956fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34be",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 190
  },
  "hsl": {
    "h": 258.696,
    "s": 57.025,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4641,
    "c": 0.20107,
    "h": 290.6
  },
  "luminance": 0.08607
}

Semantic roles & 50–950 ramp

primary
#5F34BE
secondary
#B4CA84
accent
#E048B1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5F34BE

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

Preview Lab → · Contrast checker → · Palette generator →

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