#5A2EFF#5A2EFF

#5A2EFF is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.6% C 0.278 H 280.1°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5A2EFF
RGBrgb(90, 46, 255)
HSLhsl(253, 100%, 59%)
HSVhsv(253, 82%, 100%)
CMYKcmyk(64.7%, 82%, 0%, 0%)
CIE-LABlab(40.16, 70.59, -94.66)
CIE-LCHlch(40.16, 118.08, 306.71°)
OKLaboklab(51.62% 0.0487 -0.2732)
OKLCHoklch(51.62% 0.278 280.1)
XYZxyz(23.2377, 11.3458, 95.5537)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EFF #D3FF2E
analogous
#2E6AFF #5A2EFF #C32EFF
triadic
#5A2EFF #FF5A2E #2EFF5A
tetradic
#5A2EFF #FF2E6A #D3FF2E #2EFFC3
square
#5A2EFF #FF2E6A #D3FF2E #2EFFC3
split-complementary
#5A2EFF #FFC32E #6AFF2E
monochromatic
#2600B3 #3200F0 #5A2EFF #8A6BFF #BBA8FF

Accessibility & contrast

On white

6.42
#5A2EFF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5A2EFF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A2EFF
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EFF#FFFFFF#000000##FFFFFF
##5A2EFF1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066FF
Deuteranopia (green-blind)
#0057FB
Tritanopia (blue-blind)
#00719A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a2eff;
/* rgb */ color: rgb(90, 46, 255);
/* oklch */ color: oklch(51.6% 0.278 280.1);
Tailwind
colors: {
  custom: {
    50: '#9e70ff',
    500: '#5a2eff',
    950: '#000000',
  },
}
SCSS
$custom: #5a2eff;
$custom-light: #9e70ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2eff",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 255
  },
  "hsl": {
    "h": 252.632,
    "s": 100,
    "l": 59.02
  },
  "oklch": {
    "l": 0.51624,
    "c": 0.27755,
    "h": 280.1
  },
  "luminance": 0.11348
}

Semantic roles & 50–950 ramp

primary
#5A2EFF
secondary
#DCED9B
accent
#FF29D2
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100818
muted
#7F7B86

Preview Lab

Preview with #5A2EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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