#5F2AB2#5F2AB2

#5F2AB2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.2% C 0.198 H 294.5°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#5F2AB2
RGBrgb(95, 42, 178)
HSLhsl(263, 62%, 43%)
HSVhsv(263, 76%, 70%)
CMYKcmyk(46.6%, 76.4%, 0%, 30.2%)
CIE-LABlab(32.49, 52.40, -62.91)
CIE-LCHlch(32.49, 81.88, 309.79°)
OKLaboklab(44.17% 0.0822 -0.1804)
OKLCHoklch(44.17% 0.198 294.5)
XYZxyz(13.5810, 7.3028, 42.8049)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AB2 #7DB22A
analogous
#2A39B2 #5F2AB2 #A32AB2
triadic
#5F2AB2 #B25F2A #2AB25F
tetradic
#5F2AB2 #B22A39 #7DB22A #2AB2A3
square
#5F2AB2 #B22A39 #7DB22A #2AB2A3
split-complementary
#5F2AB2 #B2A32A #39B22A
monochromatic
#2A134F #451E80 #5F2AB2 #7D46D3 #A077DF

Accessibility & contrast

On white

8.53
#5F2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5F2AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2AB2
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AB2#FFFFFF#000000##FFFFFF
##5F2AB21.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#004AAF
Tritanopia (blue-blind)
#474F6D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f2ab2;
/* rgb */ color: rgb(95, 42, 178);
/* oklch */ color: oklch(44.2% 0.198 294.5);
Tailwind
colors: {
  custom: {
    50: '#9469ca',
    500: '#5f2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ab2;
$custom-light: #9469ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ab2",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 263.382,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.44166,
    "c": 0.19823,
    "h": 294.5
  },
  "luminance": 0.07303
}

Semantic roles & 50–950 ramp

primary
#5F2AB2
secondary
#A5C771
accent
#E543A6
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5F2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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