#5725A5#5725A5

#5725A5 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.6% C 0.189 H 294.4°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5725A5
RGBrgb(87, 37, 165)
HSLhsl(263, 63%, 40%)
HSVhsv(263, 78%, 65%)
CMYKcmyk(47.3%, 77.6%, 0%, 35.3%)
CIE-LABlab(29.58, 49.99, -59.92)
CIE-LCHlch(29.58, 78.04, 309.84°)
OKLaboklab(41.56% 0.0778 -0.1718)
OKLCHoklch(41.56% 0.189 294.4)
XYZxyz(11.3817, 6.0657, 36.1611)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5725A5 #73A525
analogous
#2533A5 #5725A5 #9725A5
triadic
#5725A5 #A55725 #25A557
tetradic
#5725A5 #A52533 #73A525 #25A597
square
#5725A5 #A52533 #73A525 #25A597
split-complementary
#5725A5 #A59725 #33A525
monochromatic
#220F41 #3D1A73 #5725A5 #7235D2 #9567DD

Accessibility & contrast

On white

9.49
#5725A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5725A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5725A5
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5725A5#FFFFFF#000000##FFFFFF
##5725A51.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5725a5;
/* rgb */ color: rgb(87, 37, 165);
/* oklch */ color: oklch(41.6% 0.189 294.4);
Tailwind
colors: {
  custom: {
    50: '#8e65c1',
    500: '#5725a5',
    950: '#000000',
  },
}
SCSS
$custom: #5725a5;
$custom-light: #8e65c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5725a5",
  "rgb": {
    "r": 87,
    "g": 37,
    "b": 165
  },
  "hsl": {
    "h": 263.438,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41555,
    "c": 0.18863,
    "h": 294.4
  },
  "luminance": 0.06066
}

Semantic roles & 50–950 ramp

primary
#5725A5
secondary
#9DC363
accent
#E641A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5725A5

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

Preview Lab → · Contrast checker → · Palette generator →

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