#5F2ED3#5F2ED3

#5F2ED3 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.7% C 0.230 H 287.6°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#5F2ED3
RGBrgb(95, 46, 211)
HSLhsl(258, 65%, 50%)
HSVhsv(258, 78%, 83%)
CMYKcmyk(55%, 78.2%, 0%, 17.3%)
CIE-LABlab(36.16, 59.37, -76.25)
CIE-LCHlch(36.16, 96.64, 307.91°)
OKLaboklab(47.65% 0.0698 -0.2195)
OKLCHoklch(47.65% 0.23 287.6)
XYZxyz(17.4507, 9.0891, 62.4502)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2ED3 #A2D32E
analogous
#2E50D3 #5F2ED3 #B12ED3
triadic
#5F2ED3 #D35F2E #2ED35F
tetradic
#5F2ED3 #D32E50 #A2D32E #2ED3B1
square
#5F2ED3 #D32E50 #A2D32E #2ED3B1
split-complementary
#5F2ED3 #D3B12E #50D32E
monochromatic
#31176F #4822A2 #5F2ED3 #8661DE #AC93E8

Accessibility & contrast

On white

7.45
#5F2ED3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5F2ED3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2ED3
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2ED3#FFFFFF#000000##FFFFFF
##5F2ED31.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D8
Deuteranopia (green-blind)
#0051D0
Tritanopia (blue-blind)
#2C5E80
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f2ed3;
/* rgb */ color: rgb(95, 46, 211);
/* oklch */ color: oklch(47.7% 0.230 287.6);
Tailwind
colors: {
  custom: {
    50: '#996de2',
    500: '#5f2ed3',
    950: '#000000',
  },
}
SCSS
$custom: #5f2ed3;
$custom-light: #996de2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2ed3",
  "rgb": {
    "r": 95,
    "g": 46,
    "b": 211
  },
  "hsl": {
    "h": 257.818,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47653,
    "c": 0.23029,
    "h": 287.6
  },
  "luminance": 0.0909
}

Semantic roles & 50–950 ramp

primary
#5F2ED3
secondary
#BDD38A
accent
#E840B6
background
#FAF6FE
surface
#F4ECFC
border
#CEC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5F2ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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