#5F34BB#5F34BB

#5F34BB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.198 H 291.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5F34BB
RGBrgb(95, 52, 187)
HSLhsl(259, 56%, 47%)
HSVhsv(259, 72%, 73%)
CMYKcmyk(49.2%, 72.2%, 0%, 26.7%)
CIE-LABlab(34.96, 50.05, -64.21)
CIE-LCHlch(34.96, 81.41, 307.94°)
OKLaboklab(46.15% 0.0715 -0.1842)
OKLCHoklch(46.15% 0.198 291.2)
XYZxyz(14.9144, 8.4762, 47.8543)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34BB #90BB34
analogous
#344DBB #5F34BB #A334BB
triadic
#5F34BB #BB5F34 #34BB5F
tetradic
#5F34BB #BB344D #90BB34 #34BBA3
square
#5F34BB #BB344D #90BB34 #34BBA3
split-complementary
#5F34BB #BBA334 #4DBB34
monochromatic
#2E195B #47278B #5F34BB #815BD1 #A58BDF

Accessibility & contrast

On white

7.79
#5F34BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F34BB
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34BB#FFFFFF#000000##FFFFFF
##5F34BB1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#415774
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f34bb;
/* rgb */ color: rgb(95, 52, 187);
/* oklch */ color: oklch(46.1% 0.198 291.2);
Tailwind
colors: {
  custom: {
    50: '#956fd1',
    500: '#5f34bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f34bb;
$custom-light: #956fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34bb",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 259.111,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46147,
    "c": 0.19762,
    "h": 291.2
  },
  "luminance": 0.08477
}

Semantic roles & 50–950 ramp

primary
#5F34BB
secondary
#B2C982
accent
#E048AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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