#5725B2#5725B2

#5725B2 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.8% C 0.203 H 291.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5725B2
RGBrgb(87, 37, 178)
HSLhsl(261, 66%, 42%)
HSVhsv(261, 79%, 70%)
CMYKcmyk(51.1%, 79.2%, 0%, 30.2%)
CIE-LABlab(30.79, 53.43, -65.73)
CIE-LCHlch(30.79, 84.71, 309.11°)
OKLaboklab(42.77% 0.0739 -0.1889)
OKLCHoklch(42.77% 0.203 291.4)
XYZxyz(12.6256, 6.5632, 42.7124)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5725B2 #80B225
analogous
#2539B2 #5725B2 #9E25B2
triadic
#5725B2 #B25725 #25B257
tetradic
#5725B2 #B22539 #80B225 #25B29E
square
#5725B2 #B22539 #80B225 #25B29E
split-complementary
#5725B2 #B29E25 #39B225
monochromatic
#25104D #3E1A7F #5725B2 #743DD7 #9870E1

Accessibility & contrast

On white

9.08
#5725B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5725B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5725B2
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5725B2#FFFFFF#000000##FFFFFF
##5725B21.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#374E6C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5725b2;
/* rgb */ color: rgb(87, 37, 178);
/* oklch */ color: oklch(42.8% 0.203 291.4);
Tailwind
colors: {
  custom: {
    50: '#9066ca',
    500: '#5725b2',
    950: '#000000',
  },
}
SCSS
$custom: #5725b2;
$custom-light: #9066ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5725b2",
  "rgb": {
    "r": 87,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 261.277,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42771,
    "c": 0.20281,
    "h": 291.4
  },
  "luminance": 0.06564
}

Semantic roles & 50–950 ramp

primary
#5725B2
secondary
#A7C86B
accent
#E93FAD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5725B2

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

Preview Lab → · Contrast checker → · Palette generator →

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