#5F2EB5#5F2EB5

#5F2EB5 is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.9% C 0.197 H 293.3°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#5F2EB5
RGBrgb(95, 46, 181)
HSLhsl(262, 59%, 45%)
HSVhsv(262, 75%, 71%)
CMYKcmyk(47.5%, 74.6%, 0%, 29%)
CIE-LABlab(33.40, 51.35, -63.21)
CIE-LCHlch(33.40, 81.44, 309.09°)
OKLaboklab(44.89% 0.0781 -0.1813)
OKLCHoklch(44.89% 0.197 293.3)
XYZxyz(14.0345, 7.7226, 44.4583)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EB5 #84B52E
analogous
#2E41B5 #5F2EB5 #A32EB5
triadic
#5F2EB5 #B55F2E #2EB55F
tetradic
#5F2EB5 #B52E41 #84B52E #2EB5A3
square
#5F2EB5 #B52E41 #84B52E #2EB5A3
split-complementary
#5F2EB5 #B5A32E #41B52E
monochromatic
#2C1553 #452284 #5F2EB5 #7E4ED2 #A27FDE

Accessibility & contrast

On white

8.25
#5F2EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5F2EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EB5
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EB5#FFFFFF#000000##FFFFFF
##5F2EB51.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#45526F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f2eb5;
/* rgb */ color: rgb(95, 46, 181);
/* oklch */ color: oklch(44.9% 0.197 293.3);
Tailwind
colors: {
  custom: {
    50: '#956ccc',
    500: '#5f2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #5f2eb5;
$custom-light: #956ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2eb5",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 261.778,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44888,
    "c": 0.19737,
    "h": 293.3
  },
  "luminance": 0.07723
}

Semantic roles & 50–950 ramp

primary
#5F2EB5
secondary
#AAC778
accent
#E345A9
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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