#5733AB#5733AB

#5733AB is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.8% C 0.180 H 290.8°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#5733AB
RGBrgb(87, 51, 171)
HSLhsl(258, 54%, 44%)
HSVhsv(258, 70%, 67%)
CMYKcmyk(49.1%, 70.2%, 0%, 32.9%)
CIE-LABlab(32.55, 44.73, -58.66)
CIE-LCHlch(32.55, 73.77, 307.33°)
OKLaboklab(43.82% 0.064 -0.1682)
OKLCHoklch(43.82% 0.18 290.8)
XYZxyz(12.4629, 7.3337, 39.2791)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5733AB #87AB33
analogous
#334BAB #5733AB #9333AB
triadic
#5733AB #AB5733 #33AB57
tetradic
#5733AB #AB334B #87AB33 #33AB93
square
#5733AB #AB334B #87AB33 #33AB93
split-complementary
#5733AB #AB9333 #4BAB33
monochromatic
#27174D #3F257C #5733AB #7550CB #9A7FD9

Accessibility & contrast

On white

8.51
#5733AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5733AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5733AB#FFFFFF#000000##FFFFFF
##5733AB1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#004AA9
Tritanopia (blue-blind)
#3B526B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5733ab;
/* rgb */ color: rgb(87, 51, 171);
/* oklch */ color: oklch(43.8% 0.180 290.8);
Tailwind
colors: {
  custom: {
    50: '#8e6ec5',
    500: '#5733ab',
    950: '#000000',
  },
}
SCSS
$custom: #5733ab;
$custom-light: #8e6ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#5733ab",
  "rgb": {
    "r": 87,
    "g": 51,
    "b": 171
  },
  "hsl": {
    "h": 258,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43821,
    "c": 0.17997,
    "h": 290.8
  },
  "luminance": 0.07334
}

Semantic roles & 50–950 ramp

primary
#5733AB
secondary
#ACC278
accent
#DD4AB1
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5733AB

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

Preview Lab → · Contrast checker → · Palette generator →

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