#5F32B4#5F32B4

#5F32B4 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.3% C 0.192 H 292.9°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5F32B4
RGBrgb(95, 50, 180)
HSLhsl(261, 57%, 45%)
HSVhsv(261, 72%, 71%)
CMYKcmyk(47.2%, 72.2%, 0%, 29.4%)
CIE-LABlab(34.00, 49.14, -61.63)
CIE-LCHlch(34.00, 78.82, 308.57°)
OKLaboklab(45.29% 0.0748 -0.1766)
OKLCHoklch(45.29% 0.192 292.9)
XYZxyz(14.0959, 8.0089, 43.9744)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F32B4 #87B432
analogous
#3246B4 #5F32B4 #A032B4
triadic
#5F32B4 #B45F32 #32B45F
tetradic
#5F32B4 #B43246 #87B432 #32B4A0
square
#5F32B4 #B43246 #87B432 #32B4A0
split-complementary
#5F32B4 #B4A032 #46B432
monochromatic
#2C1754 #462584 #5F32B4 #7F54CF #A284DD

Accessibility & contrast

On white

8.07
#5F32B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5F32B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F32B4
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F32B4#FFFFFF#000000##FFFFFF
##5F32B41.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#004DB1
Tritanopia (blue-blind)
#455470
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f32b4;
/* rgb */ color: rgb(95, 50, 180);
/* oklch */ color: oklch(45.3% 0.192 292.9);
Tailwind
colors: {
  custom: {
    50: '#946ecb',
    500: '#5f32b4',
    950: '#000000',
  },
}
SCSS
$custom: #5f32b4;
$custom-light: #946ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f32b4",
  "rgb": {
    "r": 95,
    "g": 50,
    "b": 180
  },
  "hsl": {
    "h": 260.769,
    "s": 56.522,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45287,
    "c": 0.19183,
    "h": 292.9
  },
  "luminance": 0.08009
}

Semantic roles & 50–950 ramp

primary
#5F32B4
secondary
#ACC67C
accent
#E048AB
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F32B4

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

Preview Lab → · Contrast checker → · Palette generator →

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