#5A28E2#5A28E2

#5A28E2 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 48.1% C 0.251 H 284.0°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5A28E2
RGBrgb(90, 40, 226)
HSLhsl(256, 76%, 52%)
HSVhsv(256, 82%, 89%)
CMYKcmyk(60.2%, 82.3%, 0%, 11.4%)
CIE-LABlab(36.33, 65.24, -84.60)
CIE-LCHlch(36.33, 106.83, 307.64°)
OKLaboklab(48.1% 0.0608 -0.2439)
OKLCHoklch(48.1% 0.251 284)
XYZxyz(18.6985, 9.1810, 72.7235)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A28E2 #B0E228
analogous
#2853E2 #5A28E2 #B728E2
triadic
#5A28E2 #E25A28 #28E25A
tetradic
#5A28E2 #E22853 #B0E228 #28E2B7
square
#5A28E2 #E22853 #B0E228 #28E2B7
split-complementary
#5A28E2 #E2B728 #53E228
monochromatic
#2E117F #4218B4 #5A28E2 #835EE9 #AD94F1

Accessibility & contrast

On white

7.40
#5A28E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5A28E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A28E2
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A28E2#FFFFFF#000000##FFFFFF
##5A28E21.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.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: #5a28e2;
/* rgb */ color: rgb(90, 40, 226);
/* oklch */ color: oklch(48.1% 0.251 284.0);
Tailwind
colors: {
  custom: {
    50: '#996bed',
    500: '#5a28e2',
    950: '#000000',
  },
}
SCSS
$custom: #5a28e2;
$custom-light: #996bed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a28e2",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 226
  },
  "hsl": {
    "h": 256.129,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48104,
    "c": 0.25135,
    "h": 284
  },
  "luminance": 0.09182
}

Semantic roles & 50–950 ramp

primary
#5A28E2
secondary
#C6DC8A
accent
#F335C0
background
#FAF6FE
surface
#F4ECFD
border
#CEC7D5
text
#100716
muted
#7F7A84

Preview Lab

Preview with #5A28E2

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

Preview Lab → · Contrast checker → · Palette generator →

#5A28E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva