#5726A4#5726A4

#5726A4 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.186 H 294.5°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5726A4
RGBrgb(87, 38, 164)
HSLhsl(263, 62%, 40%)
HSVhsv(263, 77%, 64%)
CMYKcmyk(47%, 76.8%, 0%, 35.7%)
CIE-LABlab(29.64, 49.28, -59.21)
CIE-LCHlch(29.64, 77.03, 309.77°)
OKLaboklab(41.57% 0.0772 -0.1698)
OKLCHoklch(41.57% 0.187 294.5)
XYZxyz(11.3226, 6.0925, 35.6942)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5726A4 #73A426
analogous
#2634A4 #5726A4 #9626A4
triadic
#5726A4 #A45726 #26A457
tetradic
#5726A4 #A42634 #73A426 #26A496
square
#5726A4 #A42634 #73A426 #26A496
split-complementary
#5726A4 #A49626 #34A426
monochromatic
#220F41 #3D1A72 #5726A4 #7237D1 #9568DC

Accessibility & contrast

On white

9.47
#5726A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5726A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5726A4
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5726A4#FFFFFF#000000##FFFFFF
##5726A41.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A8
Deuteranopia (green-blind)
#0044A2
Tritanopia (blue-blind)
#404864
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5726a4;
/* rgb */ color: rgb(87, 38, 164);
/* oklch */ color: oklch(41.6% 0.186 294.5);
Tailwind
colors: {
  custom: {
    50: '#8e66c0',
    500: '#5726a4',
    950: '#000000',
  },
}
SCSS
$custom: #5726a4;
$custom-light: #8e66c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5726a4",
  "rgb": {
    "r": 87,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 263.333,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41574,
    "c": 0.1865,
    "h": 294.5
  },
  "luminance": 0.06093
}

Semantic roles & 50–950 ramp

primary
#5726A4
secondary
#9DC264
accent
#E542A6
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5726A4

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

Preview Lab → · Contrast checker → · Palette generator →

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