#5726A7#5726A7

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

Color values

HEX#5726A7
RGBrgb(87, 38, 167)
HSLhsl(263, 63%, 40%)
HSVhsv(263, 77%, 65%)
CMYKcmyk(47.9%, 77.2%, 0%, 34.5%)
CIE-LABlab(29.92, 50.07, -60.57)
CIE-LCHlch(29.92, 78.59, 309.58°)
OKLaboklab(41.85% 0.0764 -0.1738)
OKLCHoklch(41.85% 0.19 293.7)
XYZxyz(11.5967, 6.2021, 37.1378)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5726A7 #76A726
analogous
#2635A7 #5726A7 #9826A7
triadic
#5726A7 #A75726 #26A757
tetradic
#5726A7 #A72635 #76A726 #26A798
square
#5726A7 #A72635 #76A726 #26A798
split-complementary
#5726A7 #A79826 #35A726
monochromatic
#230F43 #3D1B75 #5726A7 #7338D2 #966ADD

Accessibility & contrast

On white

9.37
#5726A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5726A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5726A7
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5726A7#FFFFFF#000000##FFFFFF
##5726A71.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#3F4A65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5726a7;
/* rgb */ color: rgb(87, 38, 167);
/* oklch */ color: oklch(41.8% 0.190 293.7);
Tailwind
colors: {
  custom: {
    50: '#8f66c2',
    500: '#5726a7',
    950: '#000000',
  },
}
SCSS
$custom: #5726a7;
$custom-light: #8f66c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5726a7",
  "rgb": {
    "r": 87,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 262.791,
    "s": 62.927,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41848,
    "c": 0.18982,
    "h": 293.7
  },
  "luminance": 0.06202
}

Semantic roles & 50–950 ramp

primary
#5726A7
secondary
#A0C365
accent
#E642A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5726A7

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

Preview Lab → · Contrast checker → · Palette generator →

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