#5F2DA0#5F2DA0

#5F2DA0 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.0% C 0.175 H 298.6°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#5F2DA0
RGBrgb(95, 45, 160)
HSLhsl(266, 56%, 40%)
HSVhsv(266, 72%, 63%)
CMYKcmyk(40.6%, 71.9%, 0%, 37.3%)
CIE-LABlab(31.46, 46.28, -53.78)
CIE-LCHlch(31.46, 70.96, 310.71°)
OKLaboklab(42.97% 0.0837 -0.1536)
OKLCHoklch(42.97% 0.175 298.6)
XYZxyz(12.0012, 6.8476, 33.9403)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DA0 #6EA02D
analogous
#2D34A0 #5F2DA0 #992DA0
triadic
#5F2DA0 #A05F2D #2DA05F
tetradic
#5F2DA0 #A02D34 #6EA02D #2DA099
square
#5F2DA0 #A02D34 #6EA02D #2DA099
split-complementary
#5F2DA0 #A0992D #34A02D
monochromatic
#261240 #432070 #5F2DA0 #7C41C9 #9D70D7

Accessibility & contrast

On white

8.86
#5F2DA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5F2DA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DA0
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DA0#FFFFFF#000000##FFFFFF
##5F2DA01.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA3
Deuteranopia (green-blind)
#00499E
Tritanopia (blue-blind)
#4F4963
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2da0;
/* rgb */ color: rgb(95, 45, 160);
/* oklch */ color: oklch(43.0% 0.175 298.6);
Tailwind
colors: {
  custom: {
    50: '#926abd',
    500: '#5f2da0',
    950: '#000000',
  },
}
SCSS
$custom: #5f2da0;
$custom-light: #926abd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2da0",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 160
  },
  "hsl": {
    "h": 266.087,
    "s": 56.098,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42967,
    "c": 0.1749,
    "h": 298.6
  },
  "luminance": 0.06848
}

Semantic roles & 50–950 ramp

primary
#5F2DA0
secondary
#9ABE6B
accent
#DF489E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2DA0

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

Preview Lab → · Contrast checker → · Palette generator →

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