#5F2DA3#5F2DA3

#5F2DA3 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.2% C 0.178 H 297.8°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#5F2DA3
RGBrgb(95, 45, 163)
HSLhsl(265, 57%, 41%)
HSVhsv(265, 72%, 64%)
CMYKcmyk(41.7%, 72.4%, 0%, 36.1%)
CIE-LABlab(31.70, 47.07, -55.20)
CIE-LCHlch(31.70, 72.54, 310.45°)
OKLaboklab(43.22% 0.0831 -0.1578)
OKLCHoklch(43.22% 0.178 297.8)
XYZxyz(12.2669, 6.9538, 35.3392)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2DA3 #71A32D
analogous
#2D36A3 #5F2DA3 #9A2DA3
triadic
#5F2DA3 #A35F2D #2DA35F
tetradic
#5F2DA3 #A32D36 #71A32D #2DA39A
square
#5F2DA3 #A32D36 #71A32D #2DA39A
split-complementary
#5F2DA3 #A39A2D #36A32D
monochromatic
#271343 #432073 #5F2DA3 #7C42CB #9D72D8

Accessibility & contrast

On white

8.78
#5F2DA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#5F2DA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2DA3
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2DA3#FFFFFF#000000##FFFFFF
##5F2DA31.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0049A1
Tritanopia (blue-blind)
#4E4B65
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f2da3;
/* rgb */ color: rgb(95, 45, 163);
/* oklch */ color: oklch(43.2% 0.178 297.8);
Tailwind
colors: {
  custom: {
    50: '#936abf',
    500: '#5f2da3',
    950: '#000000',
  },
}
SCSS
$custom: #5f2da3;
$custom-light: #936abf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2da3",
  "rgb": {
    "r": 95,
    "g": 45,
    "b": 163
  },
  "hsl": {
    "h": 265.424,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43216,
    "c": 0.1783,
    "h": 297.8
  },
  "luminance": 0.06954
}

Semantic roles & 50–950 ramp

primary
#5F2DA3
secondary
#9CC06C
accent
#E048A0
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2DA3

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

Preview Lab → · Contrast checker → · Palette generator →

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