#5E2FC9#5E2FC9

#5E2FC9 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.7% C 0.219 H 288.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#5E2FC9
RGBrgb(94, 47, 201)
HSLhsl(258, 62%, 49%)
HSVhsv(258, 77%, 79%)
CMYKcmyk(53.2%, 76.6%, 0%, 21.2%)
CIE-LABlab(35.26, 56.12, -71.92)
CIE-LCHlch(35.26, 91.22, 307.96°)
OKLaboklab(46.72% 0.0705 -0.2068)
OKLCHoklch(46.72% 0.219 288.8)
XYZxyz(16.1721, 8.6290, 56.0604)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FC9 #9AC92F
analogous
#2F4DC9 #5E2FC9 #AB2FC9
triadic
#5E2FC9 #C95E2F #2FC95E
tetradic
#5E2FC9 #C92F4D #9AC92F #2FC9AB
square
#5E2FC9 #C92F4D #9AC92F #2FC9AB
split-complementary
#5E2FC9 #C9AB2F #4DC92F
monochromatic
#301866 #472397 #5E2FC9 #825CD9 #A88EE5

Accessibility & contrast

On white

7.70
#5E2FC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5E2FC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2FC9
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FC9#FFFFFF#000000##FFFFFF
##5E2FC91.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CD
Deuteranopia (green-blind)
#004FC6
Tritanopia (blue-blind)
#345B7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5e2fc9;
/* rgb */ color: rgb(94, 47, 201);
/* oklch */ color: oklch(46.7% 0.219 288.8);
Tailwind
colors: {
  custom: {
    50: '#976ddb',
    500: '#5e2fc9',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fc9;
$custom-light: #976ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fc9",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 201
  },
  "hsl": {
    "h": 258.312,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.4672,
    "c": 0.21853,
    "h": 288.8
  },
  "luminance": 0.0863
}

Semantic roles & 50–950 ramp

primary
#5E2FC9
secondary
#B8CF85
accent
#E543B4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5E2FC9

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

Preview Lab → · Contrast checker → · Palette generator →

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