#5733CA#5733CA

#5733CA is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.216 H 285.3°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5733CA
RGBrgb(87, 51, 202)
HSLhsl(254, 60%, 50%)
HSVhsv(254, 75%, 79%)
CMYKcmyk(56.9%, 74.8%, 0%, 20.8%)
CIE-LABlab(35.32, 53.57, -72.44)
CIE-LCHlch(35.32, 90.09, 306.48°)
OKLaboklab(46.62% 0.0571 -0.2086)
OKLCHoklch(46.62% 0.216 285.3)
XYZxyz(15.7717, 8.6572, 56.7056)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5733CA #A6CA33
analogous
#335ACA #5733CA #A333CA
triadic
#5733CA #CA5733 #33CA57
tetradic
#5733CA #CA335A #A6CA33 #33CAA3
square
#5733CA #CA335A #A6CA33 #33CAA3
split-complementary
#5733CA #CAA333 #5ACA33
monochromatic
#2D1A68 #422799 #5733CA #7F63D8 #A794E4

Accessibility & contrast

On white

7.69
#5733CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5733CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5733CA
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5733CA#FFFFFF#000000##FFFFFF
##5733CA1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CE
Deuteranopia (green-blind)
#004EC7
Tritanopia (blue-blind)
#1C5D7C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5733ca;
/* rgb */ color: rgb(87, 51, 202);
/* oklch */ color: oklch(46.6% 0.216 285.3);
Tailwind
colors: {
  custom: {
    50: '#936fdb',
    500: '#5733ca',
    950: '#000000',
  },
}
SCSS
$custom: #5733ca;
$custom-light: #936fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5733ca",
  "rgb": {
    "r": 87,
    "g": 51,
    "b": 202
  },
  "hsl": {
    "h": 254.305,
    "s": 59.684,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46621,
    "c": 0.21628,
    "h": 285.3
  },
  "luminance": 0.08658
}

Semantic roles & 50–950 ramp

primary
#5733CA
secondary
#BECF8A
accent
#E345BD
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5733CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5733CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva