#5F2AB3#5F2AB3

#5F2AB3 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.3% C 0.199 H 294.3°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#5F2AB3
RGBrgb(95, 42, 179)
HSLhsl(263, 62%, 43%)
HSVhsv(263, 77%, 70%)
CMYKcmyk(46.9%, 76.5%, 0%, 29.8%)
CIE-LABlab(32.58, 52.66, -63.36)
CIE-LCHlch(32.58, 82.39, 309.73°)
OKLaboklab(44.26% 0.082 -0.1817)
OKLCHoklch(44.26% 0.199 294.3)
XYZxyz(13.6817, 7.3431, 43.3356)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2AB3 #7EB32A
analogous
#2A39B3 #5F2AB3 #A32AB3
triadic
#5F2AB3 #B35F2A #2AB35F
tetradic
#5F2AB3 #B32A39 #7EB32A #2AB3A3
square
#5F2AB3 #B32A39 #7EB32A #2AB3A3
split-complementary
#5F2AB3 #B3A32A #39B32A
monochromatic
#2A1350 #451E81 #5F2AB3 #7D46D4 #A078DF

Accessibility & contrast

On white

8.51
#5F2AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5F2AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2AB3
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2AB3#FFFFFF#000000##FFFFFF
##5F2AB31.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#464F6D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f2ab3;
/* rgb */ color: rgb(95, 42, 179);
/* oklch */ color: oklch(44.3% 0.199 294.3);
Tailwind
colors: {
  custom: {
    50: '#956acb',
    500: '#5f2ab3',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ab3;
$custom-light: #956acb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ab3",
  "rgb": {
    "r": 95,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 263.212,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44256,
    "c": 0.19933,
    "h": 294.3
  },
  "luminance": 0.07343
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F2AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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