#5A42CD#5A42CD

#5A42CD is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.2% C 0.203 H 283.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5A42CD
RGBrgb(90, 66, 205)
HSLhsl(250, 58%, 53%)
HSVhsv(250, 68%, 80%)
CMYKcmyk(56.1%, 67.8%, 0%, 19.6%)
CIE-LABlab(38.68, 47.00, -68.64)
CIE-LCHlch(38.68, 83.19, 304.40°)
OKLaboklab(49.16% 0.0489 -0.1975)
OKLCHoklch(49.16% 0.203 283.9)
XYZxyz(17.1807, 10.4768, 58.8627)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A42CD #B5CD42
analogous
#426FCD #5A42CD #A042CD
triadic
#5A42CD #CD5A42 #42CD5A
tetradic
#5A42CD #CD426F #B5CD42 #42CDA0
square
#5A42CD #CD426F #B5CD42 #42CDA0
split-complementary
#5A42CD #CDA042 #6FCD42
monochromatic
#2E1F76 #412CA6 #5A42CD #8472DA #AFA3E7

Accessibility & contrast

On white

6.78
#5A42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5A42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A42CD
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A42CD#FFFFFF#000000##FFFFFF
##5A42CD1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD1
Deuteranopia (green-blind)
#0057CA
Tritanopia (blue-blind)
#216682
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a42cd;
/* rgb */ color: rgb(90, 66, 205);
/* oklch */ color: oklch(49.2% 0.203 283.9);
Tailwind
colors: {
  custom: {
    50: '#9478dd',
    500: '#5a42cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a42cd;
$custom-light: #9478dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a42cd",
  "rgb": {
    "r": 90,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 250.36,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49164,
    "c": 0.20343,
    "h": 283.9
  },
  "luminance": 0.10478
}

Semantic roles & 50–950 ramp

primary
#5A42CD
secondary
#C9D397
accent
#E146C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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