#5F2AB5#5F2AB5

#5F2AB5 is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.4% C 0.202 H 293.8°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#5F2AB5
RGBrgb(95, 42, 181)
HSLhsl(263, 62%, 44%)
HSVhsv(263, 77%, 71%)
CMYKcmyk(47.5%, 76.8%, 0%, 29%)
CIE-LABlab(32.75, 53.19, -64.26)
CIE-LCHlch(32.75, 83.42, 309.61°)
OKLaboklab(44.44% 0.0814 -0.1843)
OKLCHoklch(44.44% 0.202 293.8)
XYZxyz(13.8855, 7.4246, 44.4086)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AB5 #80B52A
analogous
#2A3AB5 #5F2AB5 #A42AB5
triadic
#5F2AB5 #B55F2A #2AB55F
tetradic
#5F2AB5 #B52A3A #80B52A #2AB5A4
square
#5F2AB5 #B52A3A #80B52A #2AB5A4
split-complementary
#5F2AB5 #B5A42A #3AB52A
monochromatic
#2B1352 #451E83 #5F2AB5 #7D48D4 #A179E0

Accessibility & contrast

On white

8.45
#5F2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5F2AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2AB5
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AB5#FFFFFF#000000##FFFFFF
##5F2AB51.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#45506E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f2ab5;
/* rgb */ color: rgb(95, 42, 181);
/* oklch */ color: oklch(44.4% 0.202 293.8);
Tailwind
colors: {
  custom: {
    50: '#956acc',
    500: '#5f2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ab5;
$custom-light: #956acc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ab5",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 262.878,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44436,
    "c": 0.2015,
    "h": 293.8
  },
  "luminance": 0.07425
}

Semantic roles & 50–950 ramp

primary
#5F2AB5
secondary
#A8C873
accent
#E542A7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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