#5734AC#5734AC

#5734AC is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.0% C 0.180 H 290.4°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#5734AC
RGBrgb(87, 52, 172)
HSLhsl(258, 54%, 44%)
HSVhsv(258, 70%, 67%)
CMYKcmyk(49.4%, 69.8%, 0%, 32.5%)
CIE-LABlab(32.83, 44.48, -58.80)
CIE-LCHlch(32.83, 73.73, 307.10°)
OKLaboklab(44.05% 0.0628 -0.1686)
OKLCHoklch(44.05% 0.18 290.4)
XYZxyz(12.6027, 7.4603, 39.7977)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5734AC #89AC34
analogous
#344DAC #5734AC #9334AC
triadic
#5734AC #AC5734 #34AC57
tetradic
#5734AC #AC344D #89AC34 #34AC93
square
#5734AC #AC344D #89AC34 #34AC93
split-complementary
#5734AC #AC9334 #4DAC34
monochromatic
#27184E #3F267D #5734AC #7652CB #9B81D9

Accessibility & contrast

On white

8.43
#5734AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5734AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5734AC#FFFFFF#000000##FFFFFF
##5734AC1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#3B526C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5734ac;
/* rgb */ color: rgb(87, 52, 172);
/* oklch */ color: oklch(44.0% 0.180 290.4);
Tailwind
colors: {
  custom: {
    50: '#8e6ec6',
    500: '#5734ac',
    950: '#000000',
  },
}
SCSS
$custom: #5734ac;
$custom-light: #8e6ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#5734ac",
  "rgb": {
    "r": 87,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 257.5,
    "s": 53.571,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44045,
    "c": 0.17997,
    "h": 290.4
  },
  "luminance": 0.07461
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5734AC

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

Preview Lab → · Contrast checker → · Palette generator →

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