#5F34B7#5F34B7

#5F34B7 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.193 H 292.0°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5F34B7
RGBrgb(95, 52, 183)
HSLhsl(260, 56%, 46%)
HSVhsv(260, 72%, 72%)
CMYKcmyk(48.1%, 71.6%, 0%, 28.2%)
CIE-LABlab(34.61, 48.95, -62.40)
CIE-LCHlch(34.61, 79.31, 308.11°)
OKLaboklab(45.8% 0.0723 -0.1789)
OKLCHoklch(45.8% 0.193 292)
XYZxyz(14.4922, 8.3073, 45.6304)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34B7 #8CB734
analogous
#344AB7 #5F34B7 #A034B7
triadic
#5F34B7 #B75F34 #34B75F
tetradic
#5F34B7 #B7344A #8CB734 #34B7A0
square
#5F34B7 #B7344A #8CB734 #34B7A0
split-complementary
#5F34B7 #B7A034 #4AB734
monochromatic
#2E1958 #462687 #5F34B7 #8059D0 #A488DD

Accessibility & contrast

On white

7.89
#5F34B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5F34B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34B7
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34B7#FFFFFF#000000##FFFFFF
##5F34B71.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#004FB4
Tritanopia (blue-blind)
#435672
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f34b7;
/* rgb */ color: rgb(95, 52, 183);
/* oklch */ color: oklch(45.8% 0.193 292.0);
Tailwind
colors: {
  custom: {
    50: '#946fce',
    500: '#5f34b7',
    950: '#000000',
  },
}
SCSS
$custom: #5f34b7;
$custom-light: #946fce;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34b7",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 183
  },
  "hsl": {
    "h": 259.695,
    "s": 55.745,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45801,
    "c": 0.19301,
    "h": 292
  },
  "luminance": 0.08308
}

Semantic roles & 50–950 ramp

primary
#5F34B7
secondary
#B0C780
accent
#DF49AE
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5F34B7

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

Preview Lab → · Contrast checker → · Palette generator →

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