#5A2EBF#5A2EBF

#5A2EBF is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.209 H 289.0°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#5A2EBF
RGBrgb(90, 46, 191)
HSLhsl(258, 61%, 46%)
HSVhsv(258, 76%, 75%)
CMYKcmyk(52.9%, 75.9%, 0%, 25.1%)
CIE-LABlab(33.75, 53.31, -68.56)
CIE-LCHlch(33.75, 86.85, 307.87°)
OKLaboklab(45.28% 0.0681 -0.1971)
OKLCHoklch(45.28% 0.209 289)
XYZxyz(14.5947, 7.8885, 50.0337)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EBF #93BF2E
analogous
#2E4BBF #5A2EBF #A32EBF
triadic
#5A2EBF #BF5A2E #2EBF5A
tetradic
#5A2EBF #BF2E4B #93BF2E #2EBFA3
square
#5A2EBF #BF2E4B #93BF2E #2EBFA3
split-complementary
#5A2EBF #BFA32E #4BBF2E
monochromatic
#2C165C #43228E #5A2EBF #7C54D6 #A286E2

Accessibility & contrast

On white

8.15
#5A2EBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5A2EBF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EBF
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EBF#FFFFFF#000000##FFFFFF
##5A2EBF1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C3
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#335775
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a2ebf;
/* rgb */ color: rgb(90, 46, 191);
/* oklch */ color: oklch(45.3% 0.209 289.0);
Tailwind
colors: {
  custom: {
    50: '#936cd3',
    500: '#5a2ebf',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ebf;
$custom-light: #936cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ebf",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 191
  },
  "hsl": {
    "h": 258.207,
    "s": 61.181,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45283,
    "c": 0.20854,
    "h": 289
  },
  "luminance": 0.07889
}

Semantic roles & 50–950 ramp

primary
#5A2EBF
secondary
#B4CB7E
accent
#E444B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A2EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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