#5F2FA1#5F2FA1

#5F2FA1 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.174 H 298.0°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#5F2FA1
RGBrgb(95, 47, 161)
HSLhsl(265, 55%, 41%)
HSVhsv(265, 71%, 63%)
CMYKcmyk(41%, 70.8%, 0%, 36.9%)
CIE-LABlab(31.90, 45.55, -53.68)
CIE-LCHlch(31.90, 70.40, 310.32°)
OKLaboklab(43.3% 0.0814 -0.1533)
OKLCHoklch(43.3% 0.174 298)
XYZxyz(12.1672, 7.0389, 34.4289)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FA1 #71A12F
analogous
#2F38A1 #5F2FA1 #982FA1
triadic
#5F2FA1 #A15F2F #2FA15F
tetradic
#5F2FA1 #A12F38 #71A12F #2FA198
square
#5F2FA1 #A12F38 #71A12F #2FA198
split-complementary
#5F2FA1 #A1982F #38A12F
monochromatic
#271342 #432172 #5F2FA1 #7C45C9 #9D74D6

Accessibility & contrast

On white

8.72
#5F2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5F2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FA1
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FA1#FFFFFF#000000##FFFFFF
##5F2FA11.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#004A9F
Tritanopia (blue-blind)
#4F4B64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2fa1;
/* rgb */ color: rgb(95, 47, 161);
/* oklch */ color: oklch(43.3% 0.174 298.0);
Tailwind
colors: {
  custom: {
    50: '#926bbe',
    500: '#5f2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fa1;
$custom-light: #926bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fa1",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 265.263,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43304,
    "c": 0.17358,
    "h": 298
  },
  "luminance": 0.07039
}

Semantic roles & 50–950 ramp

primary
#5F2FA1
secondary
#9CBE6E
accent
#DE4AA0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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