#5726A2#5726A2

#5726A2 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.184 H 295.0°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5726A2
RGBrgb(87, 38, 162)
HSLhsl(264, 62%, 39%)
HSVhsv(264, 77%, 64%)
CMYKcmyk(46.3%, 76.5%, 0%, 36.5%)
CIE-LABlab(29.46, 48.75, -58.29)
CIE-LCHlch(29.46, 75.99, 309.91°)
OKLaboklab(41.39% 0.0778 -0.1671)
OKLCHoklch(41.39% 0.184 295)
XYZxyz(11.1434, 6.0208, 34.7504)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5726A2 #71A226
analogous
#2633A2 #5726A2 #9526A2
triadic
#5726A2 #A25726 #26A257
tetradic
#5726A2 #A22633 #71A226 #26A295
square
#5726A2 #A22633 #71A226 #26A295
split-complementary
#5726A2 #A29526 #33A226
monochromatic
#220F3F #3C1A70 #5726A2 #7235D0 #9567DB

Accessibility & contrast

On white

9.53
#5726A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5726A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5726A2
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5726A2#FFFFFF#000000##FFFFFF
##5726A21.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A6
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#414763
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5726a2;
/* rgb */ color: rgb(87, 38, 162);
/* oklch */ color: oklch(41.4% 0.184 295.0);
Tailwind
colors: {
  custom: {
    50: '#8e66bf',
    500: '#5726a2',
    950: '#000000',
  },
}
SCSS
$custom: #5726a2;
$custom-light: #8e66bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5726a2",
  "rgb": {
    "r": 87,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 263.71,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41393,
    "c": 0.18428,
    "h": 295
  },
  "luminance": 0.06021
}

Semantic roles & 50–950 ramp

primary
#5726A2
secondary
#9CC163
accent
#E543A5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5726A2

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

Preview Lab → · Contrast checker → · Palette generator →

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