#5725A9#5725A9

#5725A9 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.193 H 293.4°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#5725A9
RGBrgb(87, 37, 169)
HSLhsl(263, 64%, 40%)
HSVhsv(263, 78%, 66%)
CMYKcmyk(48.5%, 78.1%, 0%, 33.7%)
CIE-LABlab(29.95, 51.05, -61.73)
CIE-LCHlch(29.95, 80.10, 309.59°)
OKLaboklab(41.92% 0.0766 -0.1771)
OKLCHoklch(41.92% 0.193 293.4)
XYZxyz(11.7515, 6.2136, 38.1086)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5725A9 #77A925
analogous
#2535A9 #5725A9 #9925A9
triadic
#5725A9 #A95725 #25A957
tetradic
#5725A9 #A92535 #77A925 #25A999
square
#5725A9 #A92535 #77A925 #25A999
split-complementary
#5725A9 #A99925 #35A925
monochromatic
#230F45 #3D1A77 #5725A9 #7338D3 #966ADE

Accessibility & contrast

On white

9.36
#5725A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5725A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5725A9
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5725A9#FFFFFF#000000##FFFFFF
##5725A91.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#0044A7
Tritanopia (blue-blind)
#3D4A66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5725a9;
/* rgb */ color: rgb(87, 37, 169);
/* oklch */ color: oklch(41.9% 0.193 293.4);
Tailwind
colors: {
  custom: {
    50: '#8f66c4',
    500: '#5725a9',
    950: '#000000',
  },
}
SCSS
$custom: #5725a9;
$custom-light: #8f66c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5725a9",
  "rgb": {
    "r": 87,
    "g": 37,
    "b": 169
  },
  "hsl": {
    "h": 262.727,
    "s": 64.078,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41924,
    "c": 0.193,
    "h": 293.4
  },
  "luminance": 0.06214
}

Semantic roles & 50–950 ramp

primary
#5725A9
secondary
#A0C465
accent
#E741A8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5725A9

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

Preview Lab → · Contrast checker → · Palette generator →

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