#5A42BF#5A42BF

#5A42BF is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.0% C 0.186 H 285.8°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#5A42BF
RGBrgb(90, 66, 191)
HSLhsl(252, 49%, 50%)
HSVhsv(252, 65%, 75%)
CMYKcmyk(52.9%, 65.4%, 0%, 25.1%)
CIE-LABlab(37.54, 42.79, -62.36)
CIE-LCHlch(37.54, 75.63, 304.46°)
OKLaboklab(47.98% 0.0508 -0.179)
OKLCHoklch(47.98% 0.186 285.8)
XYZxyz(15.5658, 9.8309, 50.3575)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A42BF #A7BF42
analogous
#4268BF #5A42BF #9842BF
triadic
#5A42BF #BF5A42 #42BF5A
tetradic
#5A42BF #BF4268 #A7BF42 #42BF98
square
#5A42BF #BF4268 #A7BF42 #42BF98
split-complementary
#5A42BF #BF9842 #68BF42
monochromatic
#2F2265 #443292 #5A42BF #8270CE #AA9DDE

Accessibility & contrast

On white

7.08
#5A42BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5A42BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A42BF
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A42BF#FFFFFF#000000##FFFFFF
##5A42BF1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#0055BD
Tritanopia (blue-blind)
#31617B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a42bf;
/* rgb */ color: rgb(90, 66, 191);
/* oklch */ color: oklch(48.0% 0.186 285.8);
Tailwind
colors: {
  custom: {
    50: '#9278d3',
    500: '#5a42bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a42bf;
$custom-light: #9278d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a42bf",
  "rgb": {
    "r": 90,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 251.52,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47981,
    "c": 0.18609,
    "h": 285.8
  },
  "luminance": 0.09832
}

Semantic roles & 50–950 ramp

primary
#5A42BF
secondary
#C0CA93
accent
#D94FBE
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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