#5F2EAC#5F2EAC

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

Color values

HEX#5F2EAC
RGBrgb(95, 46, 172)
HSLhsl(263, 58%, 43%)
HSVhsv(263, 73%, 67%)
CMYKcmyk(44.8%, 73.3%, 0%, 32.5%)
CIE-LABlab(32.62, 48.96, -59.11)
CIE-LCHlch(32.62, 76.75, 309.63°)
OKLaboklab(44.1% 0.0802 -0.1692)
OKLCHoklch(44.1% 0.187 295.4)
XYZxyz(13.1407, 7.3651, 39.7510)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EAC #7BAC2E
analogous
#2E3CAC #5F2EAC #9E2EAC
triadic
#5F2EAC #AC5F2E #2EAC5F
tetradic
#5F2EAC #AC2E3C #7BAC2E #2EAC9E
square
#5F2EAC #AC2E3C #7BAC2E #2EAC9E
split-complementary
#5F2EAC #AC9E2E #3CAC2E
monochromatic
#2A144B #44217C #5F2EAC #7D49CE #9F79DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F2EAC#FFFFFF#000000##FFFFFF
##5F2EAC1.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)
#004EB0
Deuteranopia (green-blind)
#004BAA
Tritanopia (blue-blind)
#4A4F6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f2eac;
/* rgb */ color: rgb(95, 46, 172);
/* oklch */ color: oklch(44.1% 0.187 295.4);
Tailwind
colors: {
  custom: {
    50: '#936bc6',
    500: '#5f2eac',
    950: '#000000',
  },
}
SCSS
$custom: #5f2eac;
$custom-light: #936bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2eac",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 263.333,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44102,
    "c": 0.18729,
    "h": 295.4
  },
  "luminance": 0.07365
}

Semantic roles & 50–950 ramp

primary
#5F2EAC
secondary
#A4C372
accent
#E147A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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