#5725A2#5725A2

#5725A2 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.3% C 0.185 H 295.1°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5725A2
RGBrgb(87, 37, 162)
HSLhsl(264, 63%, 39%)
HSVhsv(264, 77%, 64%)
CMYKcmyk(46.3%, 77.2%, 0%, 36.5%)
CIE-LABlab(29.31, 49.20, -58.55)
CIE-LCHlch(29.31, 76.48, 310.04°)
OKLaboklab(41.28% 0.0786 -0.1678)
OKLCHoklch(41.28% 0.185 295.1)
XYZxyz(11.1119, 5.9577, 34.7399)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5725A2 #70A225
analogous
#2532A2 #5725A2 #9625A2
triadic
#5725A2 #A25725 #25A257
tetradic
#5725A2 #A22532 #70A225 #25A296
square
#5725A2 #A22532 #70A225 #25A296
split-complementary
#5725A2 #A29625 #32A225
monochromatic
#210E3E #3C1A70 #5725A2 #7234D1 #9565DC

Accessibility & contrast

On white

9.58
#5725A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5725A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5725A2
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5725A2#FFFFFF#000000##FFFFFF
##5725A21.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5725a2;
/* rgb */ color: rgb(87, 37, 162);
/* oklch */ color: oklch(41.3% 0.185 295.1);
Tailwind
colors: {
  custom: {
    50: '#8e65bf',
    500: '#5725a2',
    950: '#000000',
  },
}
SCSS
$custom: #5725a2;
$custom-light: #8e65bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5725a2",
  "rgb": {
    "r": 87,
    "g": 37,
    "b": 162
  },
  "hsl": {
    "h": 264,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41281,
    "c": 0.18533,
    "h": 295.1
  },
  "luminance": 0.05958
}

Semantic roles & 50–950 ramp

primary
#5725A2
secondary
#9BC261
accent
#E642A4
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5725A2

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

Preview Lab → · Contrast checker → · Palette generator →

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