#5734B5#5734B5

#5734B5 is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.8% C 0.191 H 288.7°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#5734B5
RGBrgb(87, 52, 181)
HSLhsl(256, 55%, 46%)
HSVhsv(256, 71%, 71%)
CMYKcmyk(51.9%, 71.3%, 0%, 29%)
CIE-LABlab(33.60, 47.06, -62.91)
CIE-LCHlch(33.60, 78.56, 306.80°)
OKLaboklab(44.83% 0.0611 -0.1807)
OKLCHoklch(44.83% 0.191 288.7)
XYZxyz(13.4965, 7.8178, 44.5049)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5734B5 #92B534
analogous
#3451B5 #5734B5 #9734B5
triadic
#5734B5 #B55734 #34B557
tetradic
#5734B5 #B53451 #92B534 #34B597
square
#5734B5 #B53451 #92B534 #34B597
split-complementary
#5734B5 #B59734 #51B534
monochromatic
#291956 #402685 #5734B5 #7857CF #9E87DC

Accessibility & contrast

On white

8.19
#5734B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5734B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5734B5#FFFFFF#000000##FFFFFF
##5734B51.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#004CB3
Tritanopia (blue-blind)
#345671
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5734b5;
/* rgb */ color: rgb(87, 52, 181);
/* oklch */ color: oklch(44.8% 0.191 288.7);
Tailwind
colors: {
  custom: {
    50: '#906fcc',
    500: '#5734b5',
    950: '#000000',
  },
}
SCSS
$custom: #5734b5;
$custom-light: #906fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5734b5",
  "rgb": {
    "r": 87,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 256.279,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.4483,
    "c": 0.19075,
    "h": 288.7
  },
  "luminance": 0.07818
}

Semantic roles & 50–950 ramp

primary
#5734B5
secondary
#B3C67F
accent
#DF49B6
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5734B5

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

Preview Lab → · Contrast checker → · Palette generator →

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