#5E2FE2#5E2FE2

#5E2FE2 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.1% C 0.246 H 284.9°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#5E2FE2
RGBrgb(94, 47, 226)
HSLhsl(256, 76%, 54%)
HSVhsv(256, 79%, 89%)
CMYKcmyk(58.4%, 79.2%, 0%, 11.4%)
CIE-LABlab(37.67, 62.84, -82.38)
CIE-LCHlch(37.67, 103.61, 307.34°)
OKLaboklab(49.12% 0.0631 -0.2374)
OKLCHoklch(49.12% 0.246 284.9)
XYZxyz(19.3559, 9.9025, 72.8282)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FE2 #B3E22F
analogous
#2F59E2 #5E2FE2 #B72FE2
triadic
#5E2FE2 #E25E2F #2FE25E
tetradic
#5E2FE2 #E22F59 #B3E22F #2FE2B7
square
#5E2FE2 #E22F59 #B3E22F #2FE2B7
split-complementary
#5E2FE2 #E2B72F #59E22F
monochromatic
#301284 #441ABA #5E2FE2 #8865E9 #B19AF1

Accessibility & contrast

On white

7.05
#5E2FE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5E2FE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FE2
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FE2#FFFFFF#000000##FFFFFF
##5E2FE21.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DE7
Deuteranopia (green-blind)
#0053DF
Tritanopia (blue-blind)
#086589
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5e2fe2;
/* rgb */ color: rgb(94, 47, 226);
/* oklch */ color: oklch(49.1% 0.246 284.9);
Tailwind
colors: {
  custom: {
    50: '#9b6fed',
    500: '#5e2fe2',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fe2;
$custom-light: #9b6fed;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fe2",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 226
  },
  "hsl": {
    "h": 255.754,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49117,
    "c": 0.24565,
    "h": 284.9
  },
  "luminance": 0.09904
}

Semantic roles & 50–950 ramp

primary
#5E2FE2
secondary
#C9DD90
accent
#F236C1
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#100816
muted
#7F7B84

Preview Lab

Preview with #5E2FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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