#5F2FA0#5F2FA0

#5F2FA0 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.172 H 298.3°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#5F2FA0
RGBrgb(95, 47, 160)
HSLhsl(265, 55%, 41%)
HSVhsv(265, 71%, 63%)
CMYKcmyk(40.6%, 70.6%, 0%, 37.3%)
CIE-LABlab(31.82, 45.28, -53.20)
CIE-LCHlch(31.82, 69.86, 310.40°)
OKLaboklab(43.22% 0.0816 -0.1519)
OKLCHoklch(43.22% 0.172 298.3)
XYZxyz(12.0794, 7.0038, 33.9664)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FA0 #70A02F
analogous
#2F37A0 #5F2FA0 #972FA0
triadic
#5F2FA0 #A05F2F #2FA05F
tetradic
#5F2FA0 #A02F37 #70A02F #2FA097
square
#5F2FA0 #A02F37 #70A02F #2FA097
split-complementary
#5F2FA0 #A0972F #37A02F
monochromatic
#271341 #432171 #5F2FA0 #7C44C8 #9D73D6

Accessibility & contrast

On white

8.75
#5F2FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#5F2FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FA0
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FA0#FFFFFF#000000##FFFFFF
##5F2FA01.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA3
Deuteranopia (green-blind)
#004A9E
Tritanopia (blue-blind)
#4F4A64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2fa0;
/* rgb */ color: rgb(95, 47, 160);
/* oklch */ color: oklch(43.2% 0.172 298.3);
Tailwind
colors: {
  custom: {
    50: '#926bbd',
    500: '#5f2fa0',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fa0;
$custom-light: #926bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fa0",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 160
  },
  "hsl": {
    "h": 265.487,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43222,
    "c": 0.17243,
    "h": 298.3
  },
  "luminance": 0.07004
}

Semantic roles & 50–950 ramp

primary
#5F2FA0
secondary
#9BBE6D
accent
#DE4A9F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F2FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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