#5825E2#5825E2

#5825E2 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.7% C 0.254 H 283.5°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#5825E2
RGBrgb(88, 37, 226)
HSLhsl(256, 77%, 52%)
HSVhsv(256, 84%, 89%)
CMYKcmyk(61.1%, 83.6%, 0%, 11.4%)
CIE-LABlab(35.77, 66.16, -85.54)
CIE-LCHlch(35.77, 108.14, 307.72°)
OKLaboklab(47.67% 0.0591 -0.2466)
OKLCHoklch(47.67% 0.254 283.5)
XYZxyz(18.4093, 8.8876, 72.6821)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5825E2 #AFE225
analogous
#2551E2 #5825E2 #B625E2
triadic
#5825E2 #E25825 #25E258
tetradic
#5825E2 #E22551 #AFE225 #25E2B6
square
#5825E2 #E22551 #AFE225 #25E2B6
split-complementary
#5825E2 #E2B625 #51E225
monochromatic
#2E117C #4118B2 #5825E2 #815BE9 #AB91F0

Accessibility & contrast

On white

7.56
#5825E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5825E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5825E2
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5825E2#FFFFFF#000000##FFFFFF
##5825E21.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AE7
Deuteranopia (green-blind)
#004EDF
Tritanopia (blue-blind)
#006288
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5825e2;
/* rgb */ color: rgb(88, 37, 226);
/* oklch */ color: oklch(47.7% 0.254 283.5);
Tailwind
colors: {
  custom: {
    50: '#9869ed',
    500: '#5825e2',
    950: '#000000',
  },
}
SCSS
$custom: #5825e2;
$custom-light: #9869ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5825e2",
  "rgb": {
    "r": 88,
    "g": 37,
    "b": 226
  },
  "hsl": {
    "h": 256.19,
    "s": 76.518,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47672,
    "c": 0.25362,
    "h": 283.5
  },
  "luminance": 0.08889
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5825E2

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

Preview Lab → · Contrast checker → · Palette generator →

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