#5733CC#5733CC

#5733CC is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.219 H 285.0°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5733CC
RGBrgb(87, 51, 204)
HSLhsl(254, 60%, 50%)
HSVhsv(254, 75%, 80%)
CMYKcmyk(57.4%, 75%, 0%, 20%)
CIE-LABlab(35.50, 54.14, -73.29)
CIE-LCHlch(35.50, 91.12, 306.45°)
OKLaboklab(46.81% 0.0566 -0.2111)
OKLCHoklch(46.81% 0.219 285)
XYZxyz(16.0101, 8.7526, 57.9608)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5733CC #A8CC33
analogous
#335BCC #5733CC #A433CC
triadic
#5733CC #CC5733 #33CC57
tetradic
#5733CC #CC335B #A8CC33 #33CCA4
square
#5733CC #CC335B #A8CC33 #33CCA4
split-complementary
#5733CC #CCA433 #5BCC33
monochromatic
#2D1B6A #42279B #5733CC #7F64D8 #A895E4

Accessibility & contrast

On white

7.63
#5733CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5733CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5733CC
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5733CC#FFFFFF#000000##FFFFFF
##5733CC1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D0
Deuteranopia (green-blind)
#004FC9
Tritanopia (blue-blind)
#185E7D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5733cc;
/* rgb */ color: rgb(87, 51, 204);
/* oklch */ color: oklch(46.8% 0.219 285.0);
Tailwind
colors: {
  custom: {
    50: '#936fdd',
    500: '#5733cc',
    950: '#000000',
  },
}
SCSS
$custom: #5733cc;
$custom-light: #936fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5733cc",
  "rgb": {
    "r": 87,
    "g": 51,
    "b": 204
  },
  "hsl": {
    "h": 254.118,
    "s": 60,
    "l": 50
  },
  "oklch": {
    "l": 0.4681,
    "c": 0.21856,
    "h": 285
  },
  "luminance": 0.08754
}

Semantic roles & 50–950 ramp

primary
#5733CC
secondary
#C0D08B
accent
#E345BE
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5733CC

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

Preview Lab → · Contrast checker → · Palette generator →

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