#5823E2#5823E2

#5823E2 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.5% C 0.255 H 283.6°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#5823E2
RGBrgb(88, 35, 226)
HSLhsl(257, 77%, 51%)
HSVhsv(257, 85%, 89%)
CMYKcmyk(61.1%, 84.5%, 0%, 11.4%)
CIE-LABlab(35.53, 66.86, -85.93)
CIE-LCHlch(35.53, 108.88, 307.89°)
OKLaboklab(47.51% 0.06 -0.2477)
OKLCHoklch(47.51% 0.255 283.6)
XYZxyz(18.3488, 8.7665, 72.6620)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5823E2 #ADE223
analogous
#234DE2 #5823E2 #B723E2
triadic
#5823E2 #E25823 #23E258
tetradic
#5823E2 #E2234D #ADE223 #23E2B7
square
#5823E2 #E2234D #ADE223 #23E2B7
split-complementary
#5823E2 #E2B723 #4DE223
monochromatic
#2E107A #4217B1 #5823E2 #8159E9 #AA8FF0

Accessibility & contrast

On white

7.63
#5823E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5823E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5823E2
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5823E2#FFFFFF#000000##FFFFFF
##5823E21.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5823e2;
/* rgb */ color: rgb(88, 35, 226);
/* oklch */ color: oklch(47.5% 0.255 283.6);
Tailwind
colors: {
  custom: {
    50: '#9869ed',
    500: '#5823e2',
    950: '#000000',
  },
}
SCSS
$custom: #5823e2;
$custom-light: #9869ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5823e2",
  "rgb": {
    "r": 88,
    "g": 35,
    "b": 226
  },
  "hsl": {
    "h": 256.649,
    "s": 76.707,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47511,
    "c": 0.2549,
    "h": 283.6
  },
  "luminance": 0.08768
}

Semantic roles & 50–950 ramp

primary
#5823E2
secondary
#C3DB86
accent
#F335BE
background
#FAF6FE
surface
#F4EBFD
border
#CEC6D5
text
#100717
muted
#7F7A85

Preview Lab

Preview with #5823E2

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

Preview Lab → · Contrast checker → · Palette generator →

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