#5726A6#5726A6

#5726A6 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.8% C 0.189 H 294.0°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5726A6
RGBrgb(87, 38, 166)
HSLhsl(263, 63%, 40%)
HSVhsv(263, 77%, 65%)
CMYKcmyk(47.6%, 77.1%, 0%, 34.9%)
CIE-LABlab(29.83, 49.81, -60.12)
CIE-LCHlch(29.83, 78.07, 309.64°)
OKLaboklab(41.76% 0.0767 -0.1724)
OKLCHoklch(41.76% 0.189 294)
XYZxyz(11.5046, 6.1653, 36.6529)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5726A6 #75A626
analogous
#2635A6 #5726A6 #9726A6
triadic
#5726A6 #A65726 #26A657
tetradic
#5726A6 #A62635 #75A626 #26A697
square
#5726A6 #A62635 #75A626 #26A697
split-complementary
#5726A6 #A69726 #35A626
monochromatic
#230F42 #3D1B74 #5726A6 #7338D1 #966ADD

Accessibility & contrast

On white

9.40
#5726A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5726A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5726A6
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5726A6#FFFFFF#000000##FFFFFF
##5726A61.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#3F4965
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5726a6;
/* rgb */ color: rgb(87, 38, 166);
/* oklch */ color: oklch(41.8% 0.189 294.0);
Tailwind
colors: {
  custom: {
    50: '#8e66c1',
    500: '#5726a6',
    950: '#000000',
  },
}
SCSS
$custom: #5726a6;
$custom-light: #8e66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5726a6",
  "rgb": {
    "r": 87,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 262.969,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.41757,
    "c": 0.18872,
    "h": 294
  },
  "luminance": 0.06166
}

Semantic roles & 50–950 ramp

primary
#5726A6
secondary
#9FC365
accent
#E642A7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5726A6

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

Preview Lab → · Contrast checker → · Palette generator →

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