#5828D1#5828D1

#5828D1 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.2% C 0.234 H 285.8°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5828D1
RGBrgb(88, 40, 209)
HSLhsl(257, 68%, 49%)
HSVhsv(257, 81%, 82%)
CMYKcmyk(57.9%, 80.9%, 0%, 18%)
CIE-LABlab(34.39, 60.55, -78.03)
CIE-LCHlch(34.39, 98.77, 307.81°)
OKLaboklab(46.2% 0.0635 -0.2248)
OKLCHoklch(46.2% 0.234 285.8)
XYZxyz(16.2884, 8.1948, 61.0327)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5828D1 #A1D128
analogous
#284DD1 #5828D1 #AD28D1
triadic
#5828D1 #D15828 #28D158
tetradic
#5828D1 #D1284D #A1D128 #28D1AD
square
#5828D1 #D1284D #A1D128 #28D1AD
split-complementary
#5828D1 #D1AD28 #4DD128
monochromatic
#2D146A #421E9E #5828D1 #7E57DF #A58BE9

Accessibility & contrast

On white

7.96
#5828D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5828D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5828D1
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5828D1#FFFFFF#000000##FFFFFF
##5828D11.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055D6
Deuteranopia (green-blind)
#004CCE
Tritanopia (blue-blind)
#145C7E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5828d1;
/* rgb */ color: rgb(88, 40, 209);
/* oklch */ color: oklch(46.2% 0.234 285.8);
Tailwind
colors: {
  custom: {
    50: '#956ae1',
    500: '#5828d1',
    950: '#000000',
  },
}
SCSS
$custom: #5828d1;
$custom-light: #956ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#5828d1",
  "rgb": {
    "r": 88,
    "g": 40,
    "b": 209
  },
  "hsl": {
    "h": 257.041,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46201,
    "c": 0.23361,
    "h": 285.8
  },
  "luminance": 0.08196
}

Semantic roles & 50–950 ramp

primary
#5828D1
secondary
#BCD382
accent
#EB3DB9
background
#FAF6FE
surface
#F3EBFC
border
#CDC6D5
text
#0F0715
muted
#7F7A84

Preview Lab

Preview with #5828D1

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

Preview Lab → · Contrast checker → · Palette generator →

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