#5733AA#5733AA

#5733AA is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.7% C 0.179 H 291.0°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#5733AA
RGBrgb(87, 51, 170)
HSLhsl(258, 54%, 43%)
HSVhsv(258, 70%, 67%)
CMYKcmyk(48.8%, 70%, 0%, 33.3%)
CIE-LABlab(32.47, 44.45, -58.20)
CIE-LCHlch(32.47, 73.23, 307.37°)
OKLaboklab(43.74% 0.0641 -0.1669)
OKLCHoklch(43.74% 0.179 291)
XYZxyz(12.3680, 7.2957, 38.7790)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5733AA #86AA33
analogous
#334BAA #5733AA #9233AA
triadic
#5733AA #AA5733 #33AA57
tetradic
#5733AA #AA334B #86AA33 #33AA92
square
#5733AA #AA334B #86AA33 #33AA92
split-complementary
#5733AA #AA9233 #4BAA33
monochromatic
#27174C #3F257B #5733AA #7550CA #9A7FD9

Accessibility & contrast

On white

8.54
#5733AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5733AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5733AA#FFFFFF#000000##FFFFFF
##5733AA1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#3C516A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5733aa;
/* rgb */ color: rgb(87, 51, 170);
/* oklch */ color: oklch(43.7% 0.179 291.0);
Tailwind
colors: {
  custom: {
    50: '#8e6ec4',
    500: '#5733aa',
    950: '#000000',
  },
}
SCSS
$custom: #5733aa;
$custom-light: #8e6ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#5733aa",
  "rgb": {
    "r": 87,
    "g": 51,
    "b": 170
  },
  "hsl": {
    "h": 258.151,
    "s": 53.846,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43735,
    "c": 0.17876,
    "h": 291
  },
  "luminance": 0.07296
}

Semantic roles & 50–950 ramp

primary
#5733AA
secondary
#ABC277
accent
#DD4BB1
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5733AA

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

Preview Lab → · Contrast checker → · Palette generator →

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