#5F2EB6#5F2EB6

#5F2EB6 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 45.0% C 0.198 H 293.1°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#5F2EB6
RGBrgb(95, 46, 182)
HSLhsl(262, 60%, 45%)
HSVhsv(262, 75%, 71%)
CMYKcmyk(47.8%, 74.7%, 0%, 28.6%)
CIE-LABlab(33.49, 51.62, -63.66)
CIE-LCHlch(33.49, 81.95, 309.04°)
OKLaboklab(44.98% 0.0779 -0.1826)
OKLCHoklch(44.98% 0.198 293.1)
XYZxyz(14.1375, 7.7638, 45.0006)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2EB6 #85B62E
analogous
#2E41B6 #5F2EB6 #A32EB6
triadic
#5F2EB6 #B65F2E #2EB65F
tetradic
#5F2EB6 #B62E41 #85B62E #2EB6A3
square
#5F2EB6 #B62E41 #85B62E #2EB6A3
split-complementary
#5F2EB6 #B6A32E #41B62E
monochromatic
#2C1554 #462285 #5F2EB6 #7E4FD2 #A280DF

Accessibility & contrast

On white

8.23
#5F2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5F2EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2EB6
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2EB6#FFFFFF#000000##FFFFFF
##5F2EB61.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#004CB3
Tritanopia (blue-blind)
#445370
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5f2eb6;
/* rgb */ color: rgb(95, 46, 182);
/* oklch */ color: oklch(45.0% 0.198 293.1);
Tailwind
colors: {
  custom: {
    50: '#956ccd',
    500: '#5f2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #5f2eb6;
$custom-light: #956ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2eb6",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 261.618,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44976,
    "c": 0.19848,
    "h": 293.1
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#5F2EB6
secondary
#ABC878
accent
#E345AA
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5F2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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