#5F2EAD#5F2EAD

#5F2EAD is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.188 H 295.1°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5F2EAD
RGBrgb(95, 46, 173)
HSLhsl(263, 58%, 43%)
HSVhsv(263, 73%, 68%)
CMYKcmyk(45.1%, 73.4%, 0%, 32.2%)
CIE-LABlab(32.71, 49.22, -59.57)
CIE-LCHlch(32.71, 77.27, 309.57°)
OKLaboklab(44.19% 0.08 -0.1706)
OKLCHoklch(44.19% 0.188 295.1)
XYZxyz(13.2371, 7.4037, 40.2587)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EAD #7CAD2E
analogous
#2E3CAD #5F2EAD #9F2EAD
triadic
#5F2EAD #AD5F2E #2EAD5F
tetradic
#5F2EAD #AD2E3C #7CAD2E #2EAD9F
square
#5F2EAD #AD2E3C #7CAD2E #2EAD9F
split-complementary
#5F2EAD #AD9F2E #3CAD2E
monochromatic
#2A144C #44217D #5F2EAD #7D49CF #A07ADC

Accessibility & contrast

On white

8.47
#5F2EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5F2EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EAD
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EAD#FFFFFF#000000##FFFFFF
##5F2EAD1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#004BAB
Tritanopia (blue-blind)
#494F6B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f2ead;
/* rgb */ color: rgb(95, 46, 173);
/* oklch */ color: oklch(44.2% 0.188 295.1);
Tailwind
colors: {
  custom: {
    50: '#946bc6',
    500: '#5f2ead',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ead;
$custom-light: #946bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ead",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 173
  },
  "hsl": {
    "h": 263.15,
    "s": 57.991,
    "l": 42.941
  },
  "oklch": {
    "l": 0.44189,
    "c": 0.18841,
    "h": 295.1
  },
  "luminance": 0.07404
}

Semantic roles & 50–950 ramp

primary
#5F2EAD
secondary
#A5C473
accent
#E147A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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