#5F2DA2#5F2DA2

#5F2DA2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.177 H 298.0°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5F2DA2
RGBrgb(95, 45, 162)
HSLhsl(266, 57%, 41%)
HSVhsv(266, 72%, 64%)
CMYKcmyk(41.4%, 72.2%, 0%, 36.5%)
CIE-LABlab(31.62, 46.81, -54.73)
CIE-LCHlch(31.62, 72.02, 310.54°)
OKLaboklab(43.13% 0.0833 -0.1564)
OKLCHoklch(43.13% 0.177 298)
XYZxyz(12.1776, 6.9181, 34.8692)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DA2 #70A22D
analogous
#2D35A2 #5F2DA2 #992DA2
triadic
#5F2DA2 #A25F2D #2DA25F
tetradic
#5F2DA2 #A22D35 #70A22D #2DA299
square
#5F2DA2 #A22D35 #70A22D #2DA299
split-complementary
#5F2DA2 #A2992D #35A22D
monochromatic
#271242 #432072 #5F2DA2 #7C42CA #9D72D8

Accessibility & contrast

On white

8.81
#5F2DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2DA2
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DA2#FFFFFF#000000##FFFFFF
##5F2DA21.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#4E4A64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2da2;
/* rgb */ color: rgb(95, 45, 162);
/* oklch */ color: oklch(43.1% 0.177 298.0);
Tailwind
colors: {
  custom: {
    50: '#926abe',
    500: '#5f2da2',
    950: '#000000',
  },
}
SCSS
$custom: #5f2da2;
$custom-light: #926abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2da2",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 265.641,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43133,
    "c": 0.17716,
    "h": 298
  },
  "luminance": 0.06918
}

Semantic roles & 50–950 ramp

primary
#5F2DA2
secondary
#9BBF6C
accent
#E0489F
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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