#5828E2#5828E2

#5828E2 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.9% C 0.252 H 283.3°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5828E2
RGBrgb(88, 40, 226)
HSLhsl(255, 76%, 52%)
HSVhsv(255, 82%, 89%)
CMYKcmyk(61.1%, 82.3%, 0%, 11.4%)
CIE-LABlab(36.14, 65.05, -84.92)
CIE-LCHlch(36.14, 106.97, 307.45°)
OKLaboklab(47.93% 0.0578 -0.2449)
OKLCHoklch(47.93% 0.252 283.3)
XYZxyz(18.5065, 9.0820, 72.7145)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5828E2 #B2E228
analogous
#2855E2 #5828E2 #B528E2
triadic
#5828E2 #E25828 #28E258
tetradic
#5828E2 #E22855 #B2E228 #28E2B5
square
#5828E2 #E22855 #B2E228 #28E2B5
split-complementary
#5828E2 #E2B528 #55E228
monochromatic
#2D117F #4118B4 #5828E2 #825EE9 #AC94F1

Accessibility & contrast

On white

7.46
#5828E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5828E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5828E2
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5828E2#FFFFFF#000000##FFFFFF
##5828E21.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AE7
Deuteranopia (green-blind)
#004FDF
Tritanopia (blue-blind)
#006388
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5828e2;
/* rgb */ color: rgb(88, 40, 226);
/* oklch */ color: oklch(47.9% 0.252 283.3);
Tailwind
colors: {
  custom: {
    50: '#986bed',
    500: '#5828e2',
    950: '#000000',
  },
}
SCSS
$custom: #5828e2;
$custom-light: #986bed;
$custom-dark: #000000;
JSON
{
  "hex": "#5828e2",
  "rgb": {
    "r": 88,
    "g": 40,
    "b": 226
  },
  "hsl": {
    "h": 255.484,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47929,
    "c": 0.2516,
    "h": 283.3
  },
  "luminance": 0.09083
}

Semantic roles & 50–950 ramp

primary
#5828E2
secondary
#C7DC8A
accent
#F335C2
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #5828E2

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

Preview Lab → · Contrast checker → · Palette generator →

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