#5F2DB2#5F2DB2

#5F2DB2 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.195 H 294.1°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5F2DB2
RGBrgb(95, 45, 178)
HSLhsl(263, 60%, 44%)
HSVhsv(263, 75%, 70%)
CMYKcmyk(46.6%, 74.7%, 0%, 30.2%)
CIE-LABlab(32.97, 51.02, -62.12)
CIE-LCHlch(32.97, 80.39, 309.40°)
OKLaboklab(44.51% 0.0797 -0.1781)
OKLCHoklch(44.51% 0.195 294.1)
XYZxyz(13.6914, 7.5236, 42.8417)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DB2 #80B22D
analogous
#2D3EB2 #5F2DB2 #A12DB2
triadic
#5F2DB2 #B25F2D #2DB25F
tetradic
#5F2DB2 #B22D3E #80B22D #2DB2A1
square
#5F2DB2 #B22D3E #80B22D #2DB2A1
split-complementary
#5F2DB2 #B2A12D #3EB22D
monochromatic
#2B1450 #452181 #5F2DB2 #7D4BD1 #A17CDE

Accessibility & contrast

On white

8.38
#5F2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5F2DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DB2
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DB2#FFFFFF#000000##FFFFFF
##5F2DB21.008.382.508.38
#FFFFFF8.381.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB6
Deuteranopia (green-blind)
#004BAF
Tritanopia (blue-blind)
#46506D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f2db2;
/* rgb */ color: rgb(95, 45, 178);
/* oklch */ color: oklch(44.5% 0.195 294.1);
Tailwind
colors: {
  custom: {
    50: '#946bca',
    500: '#5f2db2',
    950: '#000000',
  },
}
SCSS
$custom: #5f2db2;
$custom-light: #946bca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2db2",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 262.556,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44506,
    "c": 0.1951,
    "h": 294.1
  },
  "luminance": 0.07524
}

Semantic roles & 50–950 ramp

primary
#5F2DB2
secondary
#A8C675
accent
#E345A7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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