#5F2DB3#5F2DB3

#5F2DB3 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.196 H 293.9°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#5F2DB3
RGBrgb(95, 45, 179)
HSLhsl(262, 60%, 44%)
HSVhsv(262, 75%, 70%)
CMYKcmyk(46.9%, 74.9%, 0%, 29.8%)
CIE-LABlab(33.06, 51.29, -62.57)
CIE-LCHlch(33.06, 80.91, 309.34°)
OKLaboklab(44.59% 0.0795 -0.1794)
OKLCHoklch(44.59% 0.196 293.9)
XYZxyz(13.7921, 7.5639, 43.3724)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DB3 #81B32D
analogous
#2D3EB3 #5F2DB3 #A22DB3
triadic
#5F2DB3 #B35F2D #2DB35F
tetradic
#5F2DB3 #B32D3E #81B32D #2DB3A2
square
#5F2DB3 #B32D3E #81B32D #2DB3A2
split-complementary
#5F2DB3 #B3A22D #3EB32D
monochromatic
#2B1451 #452182 #5F2DB3 #7E4BD2 #A17CDE

Accessibility & contrast

On white

8.36
#5F2DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5F2DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DB3
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DB3#FFFFFF#000000##FFFFFF
##5F2DB31.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#46516E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5f2db3;
/* rgb */ color: rgb(95, 45, 179);
/* oklch */ color: oklch(44.6% 0.196 293.9);
Tailwind
colors: {
  custom: {
    50: '#946bcb',
    500: '#5f2db3',
    950: '#000000',
  },
}
SCSS
$custom: #5f2db3;
$custom-light: #946bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2db3",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 262.388,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44594,
    "c": 0.19621,
    "h": 293.9
  },
  "luminance": 0.07564
}

Semantic roles & 50–950 ramp

primary
#5F2DB3
secondary
#A8C775
accent
#E345A8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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