#5F2FA2#5F2FA2

#5F2FA2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.4% C 0.175 H 297.7°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#5F2FA2
RGBrgb(95, 47, 162)
HSLhsl(265, 55%, 41%)
HSVhsv(265, 71%, 64%)
CMYKcmyk(41.4%, 71%, 0%, 36.5%)
CIE-LABlab(31.98, 45.81, -54.15)
CIE-LCHlch(31.98, 70.93, 310.23°)
OKLaboklab(43.39% 0.0813 -0.1547)
OKLCHoklch(43.39% 0.175 297.7)
XYZxyz(12.2557, 7.0744, 34.8952)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FA2 #72A22F
analogous
#2F39A2 #5F2FA2 #982FA2
triadic
#5F2FA2 #A25F2F #2FA25F
tetradic
#5F2FA2 #A22F39 #72A22F #2FA298
square
#5F2FA2 #A22F39 #72A22F #2FA298
split-complementary
#5F2FA2 #A2982F #39A22F
monochromatic
#271343 #432173 #5F2FA2 #7C45C9 #9E75D7

Accessibility & contrast

On white

8.70
#5F2FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2FA2
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FA2#FFFFFF#000000##FFFFFF
##5F2FA21.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004AA0
Tritanopia (blue-blind)
#4E4B65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2fa2;
/* rgb */ color: rgb(95, 47, 162);
/* oklch */ color: oklch(43.4% 0.175 297.7);
Tailwind
colors: {
  custom: {
    50: '#926bbe',
    500: '#5f2fa2',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fa2;
$custom-light: #926bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fa2",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 162
  },
  "hsl": {
    "h": 265.043,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43386,
    "c": 0.17473,
    "h": 297.7
  },
  "luminance": 0.07075
}

Semantic roles & 50–950 ramp

primary
#5F2FA2
secondary
#9DBF6E
accent
#DE49A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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