#5A2EBD#5A2EBD

#5A2EBD is a mid, highly saturated violet. Relative luminance 0.078; OKLCH L 45.1% C 0.206 H 289.4°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#5A2EBD
RGBrgb(90, 46, 189)
HSLhsl(258, 61%, 46%)
HSVhsv(258, 76%, 74%)
CMYKcmyk(52.4%, 75.7%, 0%, 25.9%)
CIE-LABlab(33.57, 52.76, -67.68)
CIE-LCHlch(33.57, 85.82, 307.94°)
OKLaboklab(45.1% 0.0686 -0.1946)
OKLCHoklch(45.1% 0.206 289.4)
XYZxyz(14.3761, 7.8011, 48.8825)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EBD #91BD2E
analogous
#2E49BD #5A2EBD #A12EBD
triadic
#5A2EBD #BD5A2E #2EBD5A
tetradic
#5A2EBD #BD2E49 #91BD2E #2EBDA1
square
#5A2EBD #BD2E49 #91BD2E #2EBDA1
split-complementary
#5A2EBD #BDA12E #49BD2E
monochromatic
#2B165B #43228C #5A2EBD #7B53D5 #A184E1

Accessibility & contrast

On white

8.20
#5A2EBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5A2EBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EBD
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EBD#FFFFFF#000000##FFFFFF
##5A2EBD1.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#004BBA
Tritanopia (blue-blind)
#355674
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a2ebd;
/* rgb */ color: rgb(90, 46, 189);
/* oklch */ color: oklch(45.1% 0.206 289.4);
Tailwind
colors: {
  custom: {
    50: '#936cd2',
    500: '#5a2ebd',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ebd;
$custom-light: #936cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ebd",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 189
  },
  "hsl": {
    "h": 258.462,
    "s": 60.851,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45097,
    "c": 0.2063,
    "h": 289.4
  },
  "luminance": 0.07802
}

Semantic roles & 50–950 ramp

primary
#5A2EBD
secondary
#B2CA7C
accent
#E444B3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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