#5F2FA6#5F2FA6

#5F2FA6 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.179 H 296.7°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#5F2FA6
RGBrgb(95, 47, 166)
HSLhsl(264, 56%, 42%)
HSVhsv(264, 72%, 65%)
CMYKcmyk(42.8%, 71.7%, 0%, 34.9%)
CIE-LABlab(32.30, 46.87, -56.03)
CIE-LCHlch(32.30, 73.05, 309.91°)
OKLaboklab(43.72% 0.0805 -0.1602)
OKLCHoklch(43.72% 0.179 296.7)
XYZxyz(12.6170, 7.2188, 36.7976)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FA6 #76A62F
analogous
#2F3AA6 #5F2FA6 #9B2FA6
triadic
#5F2FA6 #A65F2F #2FA65F
tetradic
#5F2FA6 #A62F3A #76A62F #2FA69B
square
#5F2FA6 #A62F3A #76A62F #2FA69B
split-complementary
#5F2FA6 #A69B2F #3AA62F
monochromatic
#281447 #442176 #5F2FA6 #7C47CB #9E77D8

Accessibility & contrast

On white

8.59
#5F2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2FA6
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FA6#FFFFFF#000000##FFFFFF
##5F2FA61.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA9
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#4D4D67
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2fa6;
/* rgb */ color: rgb(95, 47, 166);
/* oklch */ color: oklch(43.7% 0.179 296.7);
Tailwind
colors: {
  custom: {
    50: '#936cc1',
    500: '#5f2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fa6;
$custom-light: #936cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fa6",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 264.202,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43718,
    "c": 0.17931,
    "h": 296.7
  },
  "luminance": 0.07219
}

Semantic roles & 50–950 ramp

primary
#5F2FA6
secondary
#A0C170
accent
#DF49A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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