#5F34AE#5F34AE

#5F34AE is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.0% C 0.183 H 293.9°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#5F34AE
RGBrgb(95, 52, 174)
HSLhsl(261, 54%, 44%)
HSVhsv(261, 70%, 68%)
CMYKcmyk(45.4%, 70.1%, 0%, 31.8%)
CIE-LABlab(33.87, 46.48, -58.27)
CIE-LCHlch(33.87, 74.54, 308.58°)
OKLaboklab(45.04% 0.0741 -0.1668)
OKLCHoklch(45.04% 0.183 293.9)
XYZxyz(13.5852, 7.9445, 40.8539)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F34AE #83AE34
analogous
#3446AE #5F34AE #9C34AE
triadic
#5F34AE #AE5F34 #34AE5F
tetradic
#5F34AE #AE3446 #83AE34 #34AE9C
square
#5F34AE #AE3446 #83AE34 #34AE9C
split-complementary
#5F34AE #AE9C34 #46AE34
monochromatic
#2C1850 #45267F #5F34AE #7E53CC #A183DA

Accessibility & contrast

On white

8.11
#5F34AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5F34AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F34AE
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F34AE#FFFFFF#000000##FFFFFF
##5F34AE1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#004EAC
Tritanopia (blue-blind)
#48536D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f34ae;
/* rgb */ color: rgb(95, 52, 174);
/* oklch */ color: oklch(45.0% 0.183 293.9);
Tailwind
colors: {
  custom: {
    50: '#936fc7',
    500: '#5f34ae',
    950: '#000000',
  },
}
SCSS
$custom: #5f34ae;
$custom-light: #936fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f34ae",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 174
  },
  "hsl": {
    "h": 261.148,
    "s": 53.982,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45037,
    "c": 0.18253,
    "h": 293.9
  },
  "luminance": 0.07945
}

Semantic roles & 50–950 ramp

primary
#5F34AE
secondary
#AAC37B
accent
#DD4AAA
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F34AE

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

Preview Lab → · Contrast checker → · Palette generator →

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