#5F3BAD#5F3BAD

#5F3BAD is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.9% C 0.172 H 292.9°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#5F3BAD
RGBrgb(95, 59, 173)
HSLhsl(259, 49%, 45%)
HSVhsv(259, 66%, 68%)
CMYKcmyk(45.1%, 65.9%, 0%, 32.2%)
CIE-LABlab(35.16, 42.44, -55.58)
CIE-LCHlch(35.16, 69.93, 307.37°)
OKLaboklab(45.94% 0.067 -0.1589)
OKLCHoklch(45.94% 0.172 292.9)
XYZxyz(13.8240, 8.5775, 40.4543)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3BAD #89AD3B
analogous
#3B50AD #5F3BAD #983BAD
triadic
#5F3BAD #AD5F3B #3BAD5F
tetradic
#5F3BAD #AD3B50 #89AD3B #3BAD98
square
#5F3BAD #AD3B50 #89AD3B #3BAD98
split-complementary
#5F3BAD #AD983B #50AD3B
monochromatic
#2D1C52 #462B7F #5F3BAD #7F5DC8 #A38BD7

Accessibility & contrast

On white

7.73
#5F3BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5F3BAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3BAD
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3BAD#FFFFFF#000000##FFFFFF
##5F3BAD1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B1
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#48566F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f3bad;
/* rgb */ color: rgb(95, 59, 173);
/* oklch */ color: oklch(45.9% 0.172 292.9);
Tailwind
colors: {
  custom: {
    50: '#9373c6',
    500: '#5f3bad',
    950: '#000000',
  },
}
SCSS
$custom: #5f3bad;
$custom-light: #9373c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3bad",
  "rgb": {
    "r": 95,
    "g": 59,
    "b": 173
  },
  "hsl": {
    "h": 258.947,
    "s": 49.138,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45938,
    "c": 0.17246,
    "h": 292.9
  },
  "luminance": 0.08578
}

Semantic roles & 50–950 ramp

primary
#5F3BAD
secondary
#AEC282
accent
#D94FAD
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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