#5F2EAA#5F2EAA

#5F2EAA is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.9% C 0.185 H 295.8°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#5F2EAA
RGBrgb(95, 46, 170)
HSLhsl(264, 57%, 42%)
HSVhsv(264, 73%, 67%)
CMYKcmyk(44.1%, 72.9%, 0%, 33.3%)
CIE-LABlab(32.46, 48.42, -58.18)
CIE-LCHlch(32.46, 75.70, 309.77°)
OKLaboklab(43.93% 0.0807 -0.1665)
OKLCHoklch(43.93% 0.185 295.8)
XYZxyz(12.9501, 7.2889, 38.7470)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EAA #79AA2E
analogous
#2E3BAA #5F2EAA #9D2EAA
triadic
#5F2EAA #AA5F2E #2EAA5F
tetradic
#5F2EAA #AA2E3B #79AA2E #2EAA9D
square
#5F2EAA #AA2E3B #79AA2E #2EAA9D
split-complementary
#5F2EAA #AA9D2E #3BAA2E
monochromatic
#29144A #44217A #5F2EAA #7D48CD #9F78DA

Accessibility & contrast

On white

8.54
#5F2EAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5F2EAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EAA
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EAA#FFFFFF#000000##FFFFFF
##5F2EAA1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f2eaa;
/* rgb */ color: rgb(95, 46, 170);
/* oklch */ color: oklch(43.9% 0.185 295.8);
Tailwind
colors: {
  custom: {
    50: '#936bc4',
    500: '#5f2eaa',
    950: '#000000',
  },
}
SCSS
$custom: #5f2eaa;
$custom-light: #936bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2eaa",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 170
  },
  "hsl": {
    "h": 263.71,
    "s": 57.407,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43931,
    "c": 0.18502,
    "h": 295.8
  },
  "luminance": 0.07289
}

Semantic roles & 50–950 ramp

primary
#5F2EAA
secondary
#A2C371
accent
#E147A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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