#5F2BA3#5F2BA3

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

Color values

HEX#5F2BA3
RGBrgb(95, 43, 163)
HSLhsl(266, 58%, 40%)
HSVhsv(266, 74%, 64%)
CMYKcmyk(41.7%, 73.6%, 0%, 36.1%)
CIE-LABlab(31.36, 48.03, -55.76)
CIE-LCHlch(31.36, 73.60, 310.74°)
OKLaboklab(42.97% 0.085 -0.1594)
OKLCHoklch(42.97% 0.181 298.1)
XYZxyz(12.1923, 6.8048, 35.3143)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BA3 #6FA32B
analogous
#2B33A3 #5F2BA3 #9B2BA3
triadic
#5F2BA3 #A35F2B #2BA35F
tetradic
#5F2BA3 #A32B33 #6FA32B #2BA39B
square
#5F2BA3 #A32B33 #6FA32B #2BA39B
split-complementary
#5F2BA3 #A39B2B #33A32B
monochromatic
#271142 #431E73 #5F2BA3 #7C3FCC #9D6FD9

Accessibility & contrast

On white

8.89
#5F2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5F2BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2BA3
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BA3#FFFFFF#000000##FFFFFF
##5F2BA31.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#4E4A64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2ba3;
/* rgb */ color: rgb(95, 43, 163);
/* oklch */ color: oklch(43.0% 0.181 298.1);
Tailwind
colors: {
  custom: {
    50: '#9369bf',
    500: '#5f2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ba3;
$custom-light: #9369bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ba3",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 266,
    "s": 58.252,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42973,
    "c": 0.18065,
    "h": 298.1
  },
  "luminance": 0.06805
}

Semantic roles & 50–950 ramp

primary
#5F2BA3
secondary
#9BC06A
accent
#E1469E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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