#5F3FAC#5F3FAC

#5F3FAC is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.5% C 0.166 H 292.2°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#5F3FAC
RGBrgb(95, 63, 172)
HSLhsl(258, 46%, 46%)
HSVhsv(258, 63%, 67%)
CMYKcmyk(44.8%, 63.4%, 0%, 32.5%)
CIE-LABlab(35.92, 39.90, -53.75)
CIE-LCHlch(35.92, 66.94, 306.59°)
OKLaboklab(46.47% 0.0627 -0.1535)
OKLCHoklch(46.47% 0.166 292.2)
XYZxyz(13.9412, 8.9660, 40.0178)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3FAC #8CAC3F
analogous
#3F55AC #5F3FAC #953FAC
triadic
#5F3FAC #AC5F3F #3FAC5F
tetradic
#5F3FAC #AC3F55 #8CAC3F #3FAC95
square
#5F3FAC #AC3F55 #8CAC3F #3FAC95
split-complementary
#5F3FAC #AC953F #55AC3F
monochromatic
#2E1E52 #462F7F #5F3FAC #8063C6 #A48FD6

Accessibility & contrast

On white

7.52
#5F3FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5F3FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3FAC
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3FAC#FFFFFF#000000##FFFFFF
##5F3FAC1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AF
Deuteranopia (green-blind)
#0052AA
Tritanopia (blue-blind)
#49586F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5f3fac;
/* rgb */ color: rgb(95, 63, 172);
/* oklch */ color: oklch(46.5% 0.166 292.2);
Tailwind
colors: {
  custom: {
    50: '#9276c5',
    500: '#5f3fac',
    950: '#000000',
  },
}
SCSS
$custom: #5f3fac;
$custom-light: #9276c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3fac",
  "rgb": {
    "r": 95,
    "g": 63,
    "b": 172
  },
  "hsl": {
    "h": 257.615,
    "s": 46.383,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46465,
    "c": 0.16585,
    "h": 292.2
  },
  "luminance": 0.08966
}

Semantic roles & 50–950 ramp

primary
#5F3FAC
secondary
#B0C186
accent
#D652AF
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5F3FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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