#5F2FAE#5F2FAE

#5F2FAE is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.188 H 294.7°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5F2FAE
RGBrgb(95, 47, 174)
HSLhsl(263, 57%, 43%)
HSVhsv(263, 73%, 68%)
CMYKcmyk(45.4%, 73%, 0%, 31.8%)
CIE-LABlab(32.97, 49.00, -59.74)
CIE-LCHlch(32.97, 77.27, 309.36°)
OKLaboklab(44.4% 0.0789 -0.1711)
OKLCHoklch(44.4% 0.188 294.7)
XYZxyz(13.3737, 7.5216, 40.7834)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2FAE #7EAE2F
analogous
#2F3EAE #5F2FAE #9E2FAE
triadic
#5F2FAE #AE5F2F #2FAE5F
tetradic
#5F2FAE #AE2F3E #7EAE2F #2FAE9E
square
#5F2FAE #AE2F3E #7EAE2F #2FAE9E
split-complementary
#5F2FAE #AE9E2F #3EAE2F
monochromatic
#2A154E #45227E #5F2FAE #7D4CCF #A07CDC

Accessibility & contrast

On white

8.39
#5F2FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5F2FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2FAE
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2FAE#FFFFFF#000000##FFFFFF
##5F2FAE1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#004BAC
Tritanopia (blue-blind)
#49506C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f2fae;
/* rgb */ color: rgb(95, 47, 174);
/* oklch */ color: oklch(44.4% 0.188 294.7);
Tailwind
colors: {
  custom: {
    50: '#946cc7',
    500: '#5f2fae',
    950: '#000000',
  },
}
SCSS
$custom: #5f2fae;
$custom-light: #946cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2fae",
  "rgb": {
    "r": 95,
    "g": 47,
    "b": 174
  },
  "hsl": {
    "h": 262.677,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44397,
    "c": 0.1884,
    "h": 294.7
  },
  "luminance": 0.07522
}

Semantic roles & 50–950 ramp

primary
#5F2FAE
secondary
#A6C475
accent
#E147A7
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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