#5734A2#5734A2

#5734A2 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.2% C 0.168 H 292.6°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#5734A2
RGBrgb(87, 52, 162)
HSLhsl(259, 51%, 42%)
HSVhsv(259, 68%, 64%)
CMYKcmyk(46.3%, 67.9%, 0%, 36.5%)
CIE-LABlab(32.01, 41.62, -54.13)
CIE-LCHlch(32.01, 68.28, 307.56°)
OKLaboklab(43.2% 0.0644 -0.1549)
OKLCHoklch(43.2% 0.168 292.6)
XYZxyz(11.6783, 7.0905, 34.9287)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5734A2 #7FA234
analogous
#3448A2 #5734A2 #8E34A2
triadic
#5734A2 #A25734 #34A257
tetradic
#5734A2 #A23448 #7FA234 #34A28E
square
#5734A2 #A23448 #7FA234 #34A28E
split-complementary
#5734A2 #A28E34 #48A234
monochromatic
#251645 #3E2574 #5734A2 #744DC6 #987CD5

Accessibility & contrast

On white

8.68
#5734A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5734A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5734A2#FFFFFF#000000##FFFFFF
##5734A21.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0049A0
Tritanopia (blue-blind)
#414F66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5734a2;
/* rgb */ color: rgb(87, 52, 162);
/* oklch */ color: oklch(43.2% 0.168 292.6);
Tailwind
colors: {
  custom: {
    50: '#8d6ebe',
    500: '#5734a2',
    950: '#000000',
  },
}
SCSS
$custom: #5734a2;
$custom-light: #8d6ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5734a2",
  "rgb": {
    "r": 87,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 259.091,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43202,
    "c": 0.16779,
    "h": 292.6
  },
  "luminance": 0.07091
}

Semantic roles & 50–950 ramp

primary
#5734A2
secondary
#A6BE74
accent
#DB4DAE
background
#F9F6FB
surface
#F1ECF7
border
#CBC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5734A2

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

Preview Lab → · Contrast checker → · Palette generator →

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