#5A42BE#5A42BE

#5A42BE is a mid, vivid violet. Relative luminance 0.098; OKLCH L 47.9% C 0.185 H 286.0°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#5A42BE
RGBrgb(90, 66, 190)
HSLhsl(252, 49%, 50%)
HSVhsv(252, 65%, 75%)
CMYKcmyk(52.6%, 65.3%, 0%, 25.5%)
CIE-LABlab(37.46, 42.49, -61.91)
CIE-LCHlch(37.46, 75.09, 304.47°)
OKLaboklab(47.9% 0.0509 -0.1777)
OKLCHoklch(47.9% 0.185 286)
XYZxyz(15.4562, 9.7870, 49.7799)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A42BE #A6BE42
analogous
#4268BE #5A42BE #9842BE
triadic
#5A42BE #BE5A42 #42BE5A
tetradic
#5A42BE #BE4268 #A6BE42 #42BE98
square
#5A42BE #BE4268 #A6BE42 #42BE98
split-complementary
#5A42BE #BE9842 #68BE42
monochromatic
#2F2263 #443291 #5A42BE #8270CE #AA9DDD

Accessibility & contrast

On white

7.10
#5A42BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5A42BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A42BE
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A42BE#FFFFFF#000000##FFFFFF
##5A42BE1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#0054BC
Tritanopia (blue-blind)
#32617A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a42be;
/* rgb */ color: rgb(90, 66, 190);
/* oklch */ color: oklch(47.9% 0.185 286.0);
Tailwind
colors: {
  custom: {
    50: '#9278d3',
    500: '#5a42be',
    950: '#000000',
  },
}
SCSS
$custom: #5a42be;
$custom-light: #9278d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a42be",
  "rgb": {
    "r": 90,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 251.613,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47898,
    "c": 0.18483,
    "h": 286
  },
  "luminance": 0.09788
}

Semantic roles & 50–950 ramp

primary
#5A42BE
secondary
#BFCA92
accent
#D84FBE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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