#5F2DA1#5F2DA1

#5F2DA1 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.0% C 0.176 H 298.3°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5F2DA1
RGBrgb(95, 45, 161)
HSLhsl(266, 56%, 40%)
HSVhsv(266, 72%, 63%)
CMYKcmyk(41%, 72%, 0%, 36.9%)
CIE-LABlab(31.54, 46.55, -54.26)
CIE-LCHlch(31.54, 71.49, 310.62°)
OKLaboklab(43.05% 0.0835 -0.155)
OKLCHoklch(43.05% 0.176 298.3)
XYZxyz(12.0891, 6.8827, 34.4029)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DA1 #6FA12D
analogous
#2D35A1 #5F2DA1 #992DA1
triadic
#5F2DA1 #A15F2D #2DA15F
tetradic
#5F2DA1 #A12D35 #6FA12D #2DA199
square
#5F2DA1 #A12D35 #6FA12D #2DA199
split-complementary
#5F2DA1 #A1992D #35A12D
monochromatic
#271241 #432071 #5F2DA1 #7C41CA #9D71D7

Accessibility & contrast

On white

8.84
#5F2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5F2DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DA1
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DA1#FFFFFF#000000##FFFFFF
##5F2DA11.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#4F4A64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2da1;
/* rgb */ color: rgb(95, 45, 161);
/* oklch */ color: oklch(43.0% 0.176 298.3);
Tailwind
colors: {
  custom: {
    50: '#926abe',
    500: '#5f2da1',
    950: '#000000',
  },
}
SCSS
$custom: #5f2da1;
$custom-light: #926abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2da1",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 265.862,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4305,
    "c": 0.17603,
    "h": 298.3
  },
  "luminance": 0.06883
}

Semantic roles & 50–950 ramp

primary
#5F2DA1
secondary
#9BBF6B
accent
#E0489E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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