#5733B2#5733B2

#5733B2 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.4% C 0.188 H 289.4°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#5733B2
RGBrgb(87, 51, 178)
HSLhsl(257, 55%, 45%)
HSVhsv(257, 71%, 70%)
CMYKcmyk(51.1%, 71.3%, 0%, 30.2%)
CIE-LABlab(33.15, 46.73, -61.86)
CIE-LCHlch(33.15, 77.52, 307.07°)
OKLaboklab(44.43% 0.0626 -0.1776)
OKLCHoklch(44.43% 0.188 289.4)
XYZxyz(13.1479, 7.6077, 42.8865)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5733B2 #8EB233
analogous
#334EB2 #5733B2 #9733B2
triadic
#5733B2 #B25733 #33B257
tetradic
#5733B2 #B2334E #8EB233 #33B297
square
#5733B2 #B2334E #8EB233 #33B297
split-complementary
#5733B2 #B29733 #4EB233
monochromatic
#281853 #402582 #5733B2 #7754CE #9D84DC

Accessibility & contrast

On white

8.33
#5733B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5733B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5733B2#FFFFFF#000000##FFFFFF
##5733B21.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#004BB0
Tritanopia (blue-blind)
#36546F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5733b2;
/* rgb */ color: rgb(87, 51, 178);
/* oklch */ color: oklch(44.4% 0.188 289.4);
Tailwind
colors: {
  custom: {
    50: '#8f6eca',
    500: '#5733b2',
    950: '#000000',
  },
}
SCSS
$custom: #5733b2;
$custom-light: #8f6eca;
$custom-dark: #000000;
JSON
{
  "hex": "#5733b2",
  "rgb": {
    "r": 87,
    "g": 51,
    "b": 178
  },
  "hsl": {
    "h": 257.008,
    "s": 55.459,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44431,
    "c": 0.18833,
    "h": 289.4
  },
  "luminance": 0.07608
}

Semantic roles & 50–950 ramp

primary
#5733B2
secondary
#B0C57C
accent
#DF49B4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5733B2

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

Preview Lab → · Contrast checker → · Palette generator →

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