#5725E2#5725E2

#5725E2 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.6% C 0.254 H 283.1°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5725E2
RGBrgb(87, 37, 226)
HSLhsl(256, 77%, 52%)
HSVhsv(256, 84%, 89%)
CMYKcmyk(61.5%, 83.6%, 0%, 11.4%)
CIE-LABlab(35.67, 66.07, -85.70)
CIE-LCHlch(35.67, 108.21, 307.63°)
OKLaboklab(47.59% 0.0576 -0.2471)
OKLCHoklch(47.59% 0.254 283.1)
XYZxyz(18.3153, 8.8391, 72.6777)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5725E2 #B0E225
analogous
#2552E2 #5725E2 #B625E2
triadic
#5725E2 #E25725 #25E257
tetradic
#5725E2 #E22552 #B0E225 #25E2B6
square
#5725E2 #E22552 #B0E225 #25E2B6
split-complementary
#5725E2 #E2B625 #52E225
monochromatic
#2D117C #4118B2 #5725E2 #815BE9 #AA91F0

Accessibility & contrast

On white

7.59
#5725E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5725E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5725E2
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5725E2#FFFFFF#000000##FFFFFF
##5725E21.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059E7
Deuteranopia (green-blind)
#004DDF
Tritanopia (blue-blind)
#006288
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5725e2;
/* rgb */ color: rgb(87, 37, 226);
/* oklch */ color: oklch(47.6% 0.254 283.1);
Tailwind
colors: {
  custom: {
    50: '#9869ed',
    500: '#5725e2',
    950: '#000000',
  },
}
SCSS
$custom: #5725e2;
$custom-light: #9869ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5725e2",
  "rgb": {
    "r": 87,
    "g": 37,
    "b": 226
  },
  "hsl": {
    "h": 255.873,
    "s": 76.518,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47585,
    "c": 0.25375,
    "h": 283.1
  },
  "luminance": 0.0884
}

Semantic roles & 50–950 ramp

primary
#5725E2
secondary
#C5DB88
accent
#F335C1
background
#FAF6FE
surface
#F4EBFD
border
#CEC6D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #5725E2

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

Preview Lab → · Contrast checker → · Palette generator →

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