#5F34BC#5F34BC

#5F34BC is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.2% C 0.199 H 291.0°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5F34BC
RGBrgb(95, 52, 188)
HSLhsl(259, 57%, 47%)
HSVhsv(259, 72%, 74%)
CMYKcmyk(49.5%, 72.3%, 0%, 26.3%)
CIE-LABlab(35.04, 50.33, -64.66)
CIE-LCHlch(35.04, 81.93, 307.90°)
OKLaboklab(46.24% 0.0713 -0.1855)
OKLCHoklch(46.24% 0.199 291)
XYZxyz(15.0218, 8.5191, 48.4201)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34BC #91BC34
analogous
#344DBC #5F34BC #A334BC
triadic
#5F34BC #BC5F34 #34BC5F
tetradic
#5F34BC #BC344D #91BC34 #34BCA3
square
#5F34BC #BC344D #91BC34 #34BCA3
split-complementary
#5F34BC #BCA334 #4DBC34
monochromatic
#2F195C #47278C #5F34BC #815BD2 #A68BDF

Accessibility & contrast

On white

7.77
#5F34BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5F34BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34BC
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34BC#FFFFFF#000000##FFFFFF
##5F34BC1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C0
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#405875
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f34bc;
/* rgb */ color: rgb(95, 52, 188);
/* oklch */ color: oklch(46.2% 0.199 291.0);
Tailwind
colors: {
  custom: {
    50: '#956fd1',
    500: '#5f34bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f34bc;
$custom-light: #956fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34bc",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 188
  },
  "hsl": {
    "h": 258.971,
    "s": 56.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46235,
    "c": 0.19877,
    "h": 291
  },
  "luminance": 0.0852
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F34BC

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

Preview Lab → · Contrast checker → · Palette generator →

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