#5F2FA4#5F2FA4

#5F2FA4 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.177 H 297.2°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#5F2FA4
RGBrgb(95, 47, 164)
HSLhsl(265, 55%, 41%)
HSVhsv(265, 71%, 64%)
CMYKcmyk(42.1%, 71.3%, 0%, 35.7%)
CIE-LABlab(32.14, 46.34, -55.09)
CIE-LCHlch(32.14, 71.99, 310.07°)
OKLaboklab(43.55% 0.0809 -0.1574)
OKLCHoklch(43.55% 0.177 297.2)
XYZxyz(12.4349, 7.1460, 35.8389)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FA4 #74A42F
analogous
#2F3AA4 #5F2FA4 #9A2FA4
triadic
#5F2FA4 #A45F2F #2FA45F
tetradic
#5F2FA4 #A42F3A #74A42F #2FA49A
square
#5F2FA4 #A42F3A #74A42F #2FA49A
split-complementary
#5F2FA4 #A49A2F #3AA42F
monochromatic
#281445 #432174 #5F2FA4 #7C46CA #9E76D8

Accessibility & contrast

On white

8.64
#5F2FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5F2FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FA4
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FA4#FFFFFF#000000##FFFFFF
##5F2FA41.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#004AA2
Tritanopia (blue-blind)
#4D4C66
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2fa4;
/* rgb */ color: rgb(95, 47, 164);
/* oklch */ color: oklch(43.6% 0.177 297.2);
Tailwind
colors: {
  custom: {
    50: '#926cc0',
    500: '#5f2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fa4;
$custom-light: #926cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fa4",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 264.615,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43551,
    "c": 0.17701,
    "h": 297.2
  },
  "luminance": 0.07146
}

Semantic roles & 50–950 ramp

primary
#5F2FA4
secondary
#9FC06F
accent
#DF49A1
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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