#5F34BA#5F34BA

#5F34BA is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.196 H 291.4°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5F34BA
RGBrgb(95, 52, 186)
HSLhsl(259, 56%, 47%)
HSVhsv(259, 72%, 73%)
CMYKcmyk(48.9%, 72%, 0%, 27.1%)
CIE-LABlab(34.87, 49.78, -63.76)
CIE-LCHlch(34.87, 80.89, 307.98°)
OKLaboklab(46.06% 0.0717 -0.1829)
OKLCHoklch(46.06% 0.196 291.4)
XYZxyz(14.8077, 8.4335, 47.2925)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34BA #8FBA34
analogous
#344CBA #5F34BA #A234BA
triadic
#5F34BA #BA5F34 #34BA5F
tetradic
#5F34BA #BA344C #8FBA34 #34BAA2
square
#5F34BA #BA344C #8FBA34 #34BAA2
split-complementary
#5F34BA #BAA234 #4CBA34
monochromatic
#2E195A #47278A #5F34BA #805AD1 #A58ADE

Accessibility & contrast

On white

7.82
#5F34BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5F34BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34BA
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34BA#FFFFFF#000000##FFFFFF
##5F34BA1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f34ba;
/* rgb */ color: rgb(95, 52, 186);
/* oklch */ color: oklch(46.1% 0.196 291.4);
Tailwind
colors: {
  custom: {
    50: '#956fd0',
    500: '#5f34ba',
    950: '#000000',
  },
}
SCSS
$custom: #5f34ba;
$custom-light: #956fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34ba",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 186
  },
  "hsl": {
    "h": 259.254,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4606,
    "c": 0.19647,
    "h": 291.4
  },
  "luminance": 0.08434
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F34BA

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

Preview Lab → · Contrast checker → · Palette generator →

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