#5928E2#5928E2

#5928E2 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 48.0% C 0.251 H 283.6°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5928E2
RGBrgb(89, 40, 226)
HSLhsl(256, 76%, 52%)
HSVhsv(256, 82%, 89%)
CMYKcmyk(60.6%, 82.3%, 0%, 11.4%)
CIE-LABlab(36.24, 65.14, -84.76)
CIE-LCHlch(36.24, 106.90, 307.54°)
OKLaboklab(48.02% 0.0593 -0.2444)
OKLCHoklch(48.02% 0.251 283.6)
XYZxyz(18.6018, 9.1311, 72.7190)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5928E2 #B1E228
analogous
#2854E2 #5928E2 #B628E2
triadic
#5928E2 #E25928 #28E259
tetradic
#5928E2 #E22854 #B1E228 #28E2B6
square
#5928E2 #E22854 #B1E228 #28E2B6
split-complementary
#5928E2 #E2B628 #54E228
monochromatic
#2E117F #4118B4 #5928E2 #835EE9 #AC94F1

Accessibility & contrast

On white

7.43
#5928E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5928E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5928E2
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5928E2#FFFFFF#000000##FFFFFF
##5928E21.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5928e2;
/* rgb */ color: rgb(89, 40, 226);
/* oklch */ color: oklch(48.0% 0.251 283.6);
Tailwind
colors: {
  custom: {
    50: '#986bed',
    500: '#5928e2',
    950: '#000000',
  },
}
SCSS
$custom: #5928e2;
$custom-light: #986bed;
$custom-dark: #000000;
JSON
{
  "hex": "#5928e2",
  "rgb": {
    "r": 89,
    "g": 40,
    "b": 226
  },
  "hsl": {
    "h": 255.806,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48016,
    "c": 0.25147,
    "h": 283.6
  },
  "luminance": 0.09132
}

Semantic roles & 50–950 ramp

primary
#5928E2
secondary
#C6DC8A
accent
#F335C1
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#0F0716
muted
#7F7A84

Preview Lab

Preview with #5928E2

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

Preview Lab → · Contrast checker → · Palette generator →

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