#5A3FE2#5A3FE2

#5A3FE2 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.6% C 0.232 H 281.8°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5A3FE2
RGBrgb(90, 63, 226)
HSLhsl(250, 74%, 57%)
HSVhsv(250, 72%, 89%)
CMYKcmyk(60.2%, 72.1%, 0%, 11.4%)
CIE-LABlab(39.95, 54.84, -78.64)
CIE-LCHlch(39.95, 95.87, 304.89°)
OKLaboklab(50.63% 0.0474 -0.2267)
OKLCHoklch(50.63% 0.232 281.8)
XYZxyz(19.7171, 11.2183, 73.0631)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3FE2 #C7E23F
analogous
#3F75E2 #5A3FE2 #AC3FE2
triadic
#5A3FE2 #E25A3F #3FE25A
tetradic
#5A3FE2 #E23F75 #C7E23F #3FE2AC
square
#5A3FE2 #E23F75 #C7E23F #3FE2AC
split-complementary
#5A3FE2 #E2AC3F #75E23F
monochromatic
#2A1691 #3A1EC6 #5A3FE2 #8874EA #B5A9F2

Accessibility & contrast

On white

6.47
#5A3FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5A3FE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3FE2
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3FE2#FFFFFF#000000##FFFFFF
##5A3FE21.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E7
Deuteranopia (green-blind)
#0058DF
Tritanopia (blue-blind)
#006C8D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a3fe2;
/* rgb */ color: rgb(90, 63, 226);
/* oklch */ color: oklch(50.6% 0.232 281.8);
Tailwind
colors: {
  custom: {
    50: '#9777ec',
    500: '#5a3fe2',
    950: '#000000',
  },
}
SCSS
$custom: #5a3fe2;
$custom-light: #9777ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3fe2",
  "rgb": {
    "r": 90,
    "g": 63,
    "b": 226
  },
  "hsl": {
    "h": 249.939,
    "s": 73.756,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50626,
    "c": 0.23162,
    "h": 281.8
  },
  "luminance": 0.1122
}

Semantic roles & 50–950 ramp

primary
#5A3FE2
secondary
#D5E09D
accent
#F037D2
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A3FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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