#5F2AAF#5F2AAF

#5F2AAF is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.9% C 0.195 H 295.2°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#5F2AAF
RGBrgb(95, 42, 175)
HSLhsl(264, 61%, 43%)
HSVhsv(264, 76%, 69%)
CMYKcmyk(45.7%, 76%, 0%, 31.4%)
CIE-LABlab(32.22, 51.62, -61.56)
CIE-LCHlch(32.22, 80.34, 309.98°)
OKLaboklab(43.9% 0.083 -0.1764)
OKLCHoklch(43.9% 0.195 295.2)
XYZxyz(13.2831, 7.1836, 41.2359)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AAF #7AAF2A
analogous
#2A37AF #5F2AAF #A22AAF
triadic
#5F2AAF #AF5F2A #2AAF5F
tetradic
#5F2AAF #AF2A37 #7AAF2A #2AAFA2
square
#5F2AAF #AF2A37 #7AAF2A #2AAFA2
split-complementary
#5F2AAF #AFA22A #37AF2A
monochromatic
#29124C #441E7E #5F2AAF #7D44D2 #9F75DE

Accessibility & contrast

On white

8.62
#5F2AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5F2AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2AAF
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AAF#FFFFFF#000000##FFFFFF
##5F2AAF1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB3
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#484E6B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2aaf;
/* rgb */ color: rgb(95, 42, 175);
/* oklch */ color: oklch(43.9% 0.195 295.2);
Tailwind
colors: {
  custom: {
    50: '#9469c8',
    500: '#5f2aaf',
    950: '#000000',
  },
}
SCSS
$custom: #5f2aaf;
$custom-light: #9469c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2aaf",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 175
  },
  "hsl": {
    "h": 263.91,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43899,
    "c": 0.19497,
    "h": 295.2
  },
  "luminance": 0.07184
}

Semantic roles & 50–950 ramp

primary
#5F2AAF
secondary
#A3C66F
accent
#E443A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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