#5935EA#5935EA

#5935EA is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.1% C 0.250 H 281.6°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#5935EA
RGBrgb(89, 53, 234)
HSLhsl(252, 81%, 56%)
HSVhsv(252, 77%, 92%)
CMYKcmyk(62%, 77.4%, 0%, 8.2%)
CIE-LABlab(38.91, 61.88, -84.89)
CIE-LCHlch(38.91, 105.05, 306.09°)
OKLaboklab(50.11% 0.0503 -0.2449)
OKLCHoklch(50.11% 0.25 281.6)
XYZxyz(20.2395, 10.6091, 78.8071)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5935EA #C6EA35
analogous
#356CEA #5935EA #B435EA
triadic
#5935EA #EA5935 #35EA59
tetradic
#5935EA #EA356C #C6EA35 #35EAB4
square
#5935EA #EA356C #C6EA35 #35EAB4
split-complementary
#5935EA #EAB435 #6CEA35
monochromatic
#2A1095 #3A15CD #5935EA #876CF0 #B4A4F6

Accessibility & contrast

On white

6.73
#5935EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5935EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5935EA
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5935EA#FFFFFF#000000##FFFFFF
##5935EA1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062EF
Deuteranopia (green-blind)
#0055E7
Tritanopia (blue-blind)
#006B8F
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5935ea;
/* rgb */ color: rgb(89, 53, 234);
/* oklch */ color: oklch(50.1% 0.250 281.6);
Tailwind
colors: {
  custom: {
    50: '#9972f2',
    500: '#5935ea',
    950: '#000000',
  },
}
SCSS
$custom: #5935ea;
$custom-light: #9972f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5935ea",
  "rgb": {
    "r": 89,
    "g": 53,
    "b": 234
  },
  "hsl": {
    "h": 251.934,
    "s": 81.166,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50109,
    "c": 0.25002,
    "h": 281.6
  },
  "luminance": 0.10611
}

Semantic roles & 50–950 ramp

primary
#5935EA
secondary
#D4E398
accent
#F830D0
background
#FAF7FF
surface
#F4EDFE
border
#CEC8D6
text
#100817
muted
#7F7B85

Preview Lab

Preview with #5935EA

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

Preview Lab → · Contrast checker → · Palette generator →

#5935EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva