#5F2FAA#5F2FAA

#5F2FAA is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.184 H 295.7°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#5F2FAA
RGBrgb(95, 47, 170)
HSLhsl(263, 57%, 43%)
HSVhsv(263, 72%, 67%)
CMYKcmyk(44.1%, 72.4%, 0%, 33.3%)
CIE-LABlab(32.63, 47.93, -57.90)
CIE-LCHlch(32.63, 75.17, 309.62°)
OKLaboklab(44.06% 0.0797 -0.1657)
OKLCHoklch(44.06% 0.184 295.7)
XYZxyz(12.9896, 7.3679, 38.7602)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FAA #7AAA2F
analogous
#2F3CAA #5F2FAA #9D2FAA
triadic
#5F2FAA #AA5F2F #2FAA5F
tetradic
#5F2FAA #AA2F3C #7AAA2F #2FAA9D
square
#5F2FAA #AA2F3C #7AAA2F #2FAA9D
split-complementary
#5F2FAA #AA9D2F #3CAA2F
monochromatic
#29144A #44227A #5F2FAA #7D49CD #9F79DA

Accessibility & contrast

On white

8.49
#5F2FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5F2FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FAA
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FAA#FFFFFF#000000##FFFFFF
##5F2FAA1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#004BA8
Tritanopia (blue-blind)
#4B4E69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f2faa;
/* rgb */ color: rgb(95, 47, 170);
/* oklch */ color: oklch(44.1% 0.184 295.7);
Tailwind
colors: {
  custom: {
    50: '#936cc4',
    500: '#5f2faa',
    950: '#000000',
  },
}
SCSS
$custom: #5f2faa;
$custom-light: #936cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2faa",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 263.415,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44055,
    "c": 0.18386,
    "h": 295.7
  },
  "luminance": 0.07368
}

Semantic roles & 50–950 ramp

primary
#5F2FAA
secondary
#A3C272
accent
#E048A5
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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