#5734AB#5734AB

#5734AB is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.0% C 0.179 H 290.6°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#5734AB
RGBrgb(87, 52, 171)
HSLhsl(258, 53%, 44%)
HSVhsv(258, 70%, 67%)
CMYKcmyk(49.1%, 69.6%, 0%, 32.9%)
CIE-LABlab(32.75, 44.19, -58.34)
CIE-LCHlch(32.75, 73.19, 307.14°)
OKLaboklab(43.96% 0.063 -0.1673)
OKLCHoklch(43.96% 0.179 290.6)
XYZxyz(12.5071, 7.4220, 39.2938)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5734AB #88AB34
analogous
#344CAB #5734AB #9234AB
triadic
#5734AB #AB5734 #34AB57
tetradic
#5734AB #AB344C #88AB34 #34AB92
square
#5734AB #AB344C #88AB34 #34AB92
split-complementary
#5734AB #AB9234 #4CAB34
monochromatic
#27174D #3F267C #5734AB #7552CA #9B81D9

Accessibility & contrast

On white

8.45
#5734AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##5734AB#FFFFFF#000000##FFFFFF
##5734AB1.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.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: #5734ab;
/* rgb */ color: rgb(87, 52, 171);
/* oklch */ color: oklch(44.0% 0.179 290.6);
Tailwind
colors: {
  custom: {
    50: '#8e6ec5',
    500: '#5734ab',
    950: '#000000',
  },
}
SCSS
$custom: #5734ab;
$custom-light: #8e6ec5;
$custom-dark: #000000;
JSON
{
  "hex": "#5734ab",
  "rgb": {
    "r": 87,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 257.647,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43959,
    "c": 0.17876,
    "h": 290.6
  },
  "luminance": 0.07422
}

Semantic roles & 50–950 ramp

primary
#5734AB
secondary
#ACC279
accent
#DD4BB2
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5734AB

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

Preview Lab → · Contrast checker → · Palette generator →

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