#5E2FD3#5E2FD3

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

Color values

HEX#5E2FD3
RGBrgb(94, 47, 211)
HSLhsl(257, 65%, 51%)
HSVhsv(257, 78%, 83%)
CMYKcmyk(55.5%, 77.7%, 0%, 17.3%)
CIE-LABlab(36.20, 58.81, -76.17)
CIE-LCHlch(36.20, 96.23, 307.67°)
OKLaboklab(47.66% 0.0676 -0.2193)
OKLCHoklch(47.66% 0.229 287.1)
XYZxyz(17.3870, 9.1149, 62.4586)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2FD3 #A4D32F
analogous
#2F52D3 #5E2FD3 #B02FD3
triadic
#5E2FD3 #D35E2F #2FD35E
tetradic
#5E2FD3 #D32F52 #A4D32F #2FD3B0
square
#5E2FD3 #D32F52 #A4D32F #2FD3B0
split-complementary
#5E2FD3 #D3B02F #52D32F
monochromatic
#311870 #4722A2 #5E2FD3 #8562DE #AC94E8

Accessibility & contrast

On white

7.44
#5E2FD3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2FD3
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2FD3#FFFFFF#000000##FFFFFF
##5E2FD31.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e2fd3;
/* rgb */ color: rgb(94, 47, 211);
/* oklch */ color: oklch(47.7% 0.229 287.1);
Tailwind
colors: {
  custom: {
    50: '#986ee2',
    500: '#5e2fd3',
    950: '#000000',
  },
}
SCSS
$custom: #5e2fd3;
$custom-light: #986ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2fd3",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 211
  },
  "hsl": {
    "h": 257.195,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47664,
    "c": 0.22947,
    "h": 287.1
  },
  "luminance": 0.09116
}

Semantic roles & 50–950 ramp

primary
#5E2FD3
secondary
#BED38A
accent
#E840B8
background
#FAF6FE
surface
#F4ECFC
border
#CEC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5E2FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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