#5F2BA2#5F2BA2

#5F2BA2 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.180 H 298.3°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5F2BA2
RGBrgb(95, 43, 162)
HSLhsl(266, 58%, 40%)
HSVhsv(266, 73%, 64%)
CMYKcmyk(41.4%, 73.5%, 0%, 36.5%)
CIE-LABlab(31.28, 47.78, -55.29)
CIE-LCHlch(31.28, 73.07, 310.83°)
OKLaboklab(42.89% 0.0852 -0.158)
OKLCHoklch(42.89% 0.18 298.3)
XYZxyz(12.1031, 6.7691, 34.8443)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2BA2 #6EA22B
analogous
#2B33A2 #5F2BA2 #9A2BA2
triadic
#5F2BA2 #A25F2B #2BA25F
tetradic
#5F2BA2 #A22B33 #6EA22B #2BA29A
square
#5F2BA2 #A22B33 #6EA22B #2BA29A
split-complementary
#5F2BA2 #A29A2B #33A22B
monochromatic
#261141 #431E72 #5F2BA2 #7C3ECC #9D6FD9

Accessibility & contrast

On white

8.92
#5F2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5F2BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2BA2
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2BA2#FFFFFF#000000##FFFFFF
##5F2BA21.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#4F4964
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f2ba2;
/* rgb */ color: rgb(95, 43, 162);
/* oklch */ color: oklch(42.9% 0.180 298.3);
Tailwind
colors: {
  custom: {
    50: '#9369be',
    500: '#5f2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ba2;
$custom-light: #9369be;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ba2",
  "rgb": {
    "r": 95,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 266.218,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42889,
    "c": 0.17953,
    "h": 298.3
  },
  "luminance": 0.06769
}

Semantic roles & 50–950 ramp

primary
#5F2BA2
secondary
#9AC069
accent
#E1479E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0712
muted
#7E7A81

Preview Lab

Preview with #5F2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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