#5F2AC5#5F2AC5

#5F2AC5 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.9% C 0.219 H 290.5°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#5F2AC5
RGBrgb(95, 42, 197)
HSLhsl(261, 65%, 47%)
HSVhsv(261, 79%, 77%)
CMYKcmyk(51.8%, 78.7%, 0%, 22.7%)
CIE-LABlab(34.23, 57.38, -71.27)
CIE-LCHlch(34.23, 91.50, 308.84°)
OKLaboklab(45.91% 0.0767 -0.2049)
OKLCHoklch(45.91% 0.219 290.5)
XYZxyz(15.6224, 8.1194, 53.5565)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AC5 #90C52A
analogous
#2A43C5 #5F2AC5 #AD2AC5
triadic
#5F2AC5 #C55F2A #2AC55F
tetradic
#5F2AC5 #C52A43 #90C52A #2AC5AD
square
#5F2AC5 #C52A43 #90C52A #2AC5AD
split-complementary
#5F2AC5 #C5AD2A #43C52A
monochromatic
#2E1460 #471F93 #5F2AC5 #8152DA #A585E5

Accessibility & contrast

On white

8.00
#5F2AC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5F2AC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2AC5
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AC5#FFFFFF#000000##FFFFFF
##5F2AC51.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C9
Deuteranopia (green-blind)
#004DC2
Tritanopia (blue-blind)
#3A5778
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f2ac5;
/* rgb */ color: rgb(95, 42, 197);
/* oklch */ color: oklch(45.9% 0.219 290.5);
Tailwind
colors: {
  custom: {
    50: '#976ad8',
    500: '#5f2ac5',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ac5;
$custom-light: #976ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ac5",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 197
  },
  "hsl": {
    "h": 260.516,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.45913,
    "c": 0.21875,
    "h": 290.5
  },
  "luminance": 0.0812
}

Semantic roles & 50–950 ramp

primary
#5F2AC5
secondary
#B2CE7D
accent
#E840AE
background
#FAF6FD
surface
#F3EBFB
border
#CDC6D4
text
#0F0715
muted
#7F7A83

Preview Lab

Preview with #5F2AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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