#5F2AC2#5F2AC2

#5F2AC2 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.6% C 0.216 H 291.1°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5F2AC2
RGBrgb(95, 42, 194)
HSLhsl(261, 64%, 46%)
HSVhsv(261, 78%, 76%)
CMYKcmyk(51%, 78.4%, 0%, 23.9%)
CIE-LABlab(33.95, 56.59, -69.98)
CIE-LCHlch(33.95, 90.00, 308.96°)
OKLaboklab(45.63% 0.0776 -0.2011)
OKLCHoklch(45.63% 0.216 291.1)
XYZxyz(15.2821, 7.9832, 51.7642)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AC2 #8DC22A
analogous
#2A41C2 #5F2AC2 #AB2AC2
triadic
#5F2AC2 #C25F2A #2AC25F
tetradic
#5F2AC2 #C22A41 #8DC22A #2AC2AB
square
#5F2AC2 #C22A41 #8DC22A #2AC2AB
split-complementary
#5F2AC2 #C2AB2A #41C22A
monochromatic
#2E145D #461F90 #5F2AC2 #8050D9 #A482E4

Accessibility & contrast

On white

8.09
#5F2AC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2AC2
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AC2#FFFFFF#000000##FFFFFF
##5F2AC21.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C6
Deuteranopia (green-blind)
#004CBF
Tritanopia (blue-blind)
#3C5676
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f2ac2;
/* rgb */ color: rgb(95, 42, 194);
/* oklch */ color: oklch(45.6% 0.216 291.1);
Tailwind
colors: {
  custom: {
    50: '#976ad6',
    500: '#5f2ac2',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ac2;
$custom-light: #976ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ac2",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 194
  },
  "hsl": {
    "h": 260.921,
    "s": 64.407,
    "l": 46.275
  },
  "oklch": {
    "l": 0.45632,
    "c": 0.21554,
    "h": 291.1
  },
  "luminance": 0.07984
}

Semantic roles & 50–950 ramp

primary
#5F2AC2
secondary
#B0CD7B
accent
#E740AD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0F0714
muted
#7E7A83

Preview Lab

Preview with #5F2AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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