#5F34B2#5F34B2

#5F34B2 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.187 H 293.1°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5F34B2
RGBrgb(95, 52, 178)
HSLhsl(260, 55%, 45%)
HSVhsv(260, 71%, 70%)
CMYKcmyk(46.6%, 70.8%, 0%, 30.2%)
CIE-LABlab(34.20, 47.58, -60.12)
CIE-LCHlch(34.20, 76.67, 308.36°)
OKLaboklab(45.37% 0.0733 -0.1722)
OKLCHoklch(45.37% 0.187 293.1)
XYZxyz(13.9810, 8.1028, 42.9382)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34B2 #87B234
analogous
#3448B2 #5F34B2 #9E34B2
triadic
#5F34B2 #B25F34 #34B25F
tetradic
#5F34B2 #B23448 #87B234 #34B29E
square
#5F34B2 #B23448 #87B234 #34B29E
split-complementary
#5F34B2 #B29E34 #48B234
monochromatic
#2C1853 #462683 #5F34B2 #7F56CE #A285DB

Accessibility & contrast

On white

8.01
#5F34B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5F34B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34B2
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34B2#FFFFFF#000000##FFFFFF
##5F34B21.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004EB0
Tritanopia (blue-blind)
#46546F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f34b2;
/* rgb */ color: rgb(95, 52, 178);
/* oklch */ color: oklch(45.4% 0.187 293.1);
Tailwind
colors: {
  custom: {
    50: '#946fca',
    500: '#5f34b2',
    950: '#000000',
  },
}
SCSS
$custom: #5f34b2;
$custom-light: #946fca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34b2",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 260.476,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45373,
    "c": 0.1872,
    "h": 293.1
  },
  "luminance": 0.08103
}

Semantic roles & 50–950 ramp

primary
#5F34B2
secondary
#ACC57D
accent
#DE4AAB
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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