#5726A5#5726A5

#5726A5 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.188 H 294.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#5726A5
RGBrgb(87, 38, 165)
HSLhsl(263, 63%, 40%)
HSVhsv(263, 77%, 65%)
CMYKcmyk(47.3%, 77%, 0%, 35.3%)
CIE-LABlab(29.73, 49.54, -59.66)
CIE-LCHlch(29.73, 77.55, 309.71°)
OKLaboklab(41.67% 0.077 -0.1711)
OKLCHoklch(41.67% 0.188 294.2)
XYZxyz(11.4133, 6.1287, 36.1716)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5726A5 #74A526
analogous
#2634A5 #5726A5 #9726A5
triadic
#5726A5 #A55726 #26A557
tetradic
#5726A5 #A52634 #74A526 #26A597
square
#5726A5 #A52634 #74A526 #26A597
split-complementary
#5726A5 #A59726 #34A526
monochromatic
#230F42 #3D1B73 #5726A5 #7337D1 #9669DC

Accessibility & contrast

On white

9.43
#5726A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5726A5
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5726A5#FFFFFF#000000##FFFFFF
##5726A51.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#404964
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5726a5;
/* rgb */ color: rgb(87, 38, 165);
/* oklch */ color: oklch(41.7% 0.188 294.2);
Tailwind
colors: {
  custom: {
    50: '#8e66c1',
    500: '#5726a5',
    950: '#000000',
  },
}
SCSS
$custom: #5726a5;
$custom-light: #8e66c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5726a5",
  "rgb": {
    "r": 87,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 263.15,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41665,
    "c": 0.18761,
    "h": 294.2
  },
  "luminance": 0.06129
}

Semantic roles & 50–950 ramp

primary
#5726A5
secondary
#9EC364
accent
#E642A7
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5726A5

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

Preview Lab → · Contrast checker → · Palette generator →

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