#5734AA#5734AA

#5734AA is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.9% C 0.178 H 290.8°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#5734AA
RGBrgb(87, 52, 170)
HSLhsl(258, 53%, 44%)
HSVhsv(258, 69%, 67%)
CMYKcmyk(48.8%, 69.4%, 0%, 33.3%)
CIE-LABlab(32.67, 43.91, -57.88)
CIE-LCHlch(32.67, 72.65, 307.18°)
OKLaboklab(43.87% 0.0632 -0.1659)
OKLCHoklch(43.87% 0.178 290.8)
XYZxyz(12.4121, 7.3840, 38.7937)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5734AA #87AA34
analogous
#344CAA #5734AA #9234AA
triadic
#5734AA #AA5734 #34AA57
tetradic
#5734AA #AA344C #87AA34 #34AA92
square
#5734AA #AA344C #87AA34 #34AA92
split-complementary
#5734AA #AA9234 #4CAA34
monochromatic
#27174C #3F267B #5734AA #7551CA #9A80D8

Accessibility & contrast

On white

8.48
#5734AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5734AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5734AA
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5734AA#FFFFFF#000000##FFFFFF
##5734AA1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#3C526B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5734aa;
/* rgb */ color: rgb(87, 52, 170);
/* oklch */ color: oklch(43.9% 0.178 290.8);
Tailwind
colors: {
  custom: {
    50: '#8e6ec4',
    500: '#5734aa',
    950: '#000000',
  },
}
SCSS
$custom: #5734aa;
$custom-light: #8e6ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#5734aa",
  "rgb": {
    "r": 87,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 257.797,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43874,
    "c": 0.17755,
    "h": 290.8
  },
  "luminance": 0.07384
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5734AA

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

Preview Lab → · Contrast checker → · Palette generator →

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