#5A46CD#5A46CD

#5A46CD is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.8% C 0.199 H 283.2°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5A46CD
RGBrgb(90, 70, 205)
HSLhsl(249, 57%, 54%)
HSVhsv(249, 66%, 80%)
CMYKcmyk(56.1%, 65.9%, 0%, 19.6%)
CIE-LABlab(39.51, 44.74, -67.29)
CIE-LCHlch(39.51, 80.80, 303.62°)
OKLaboklab(49.76% 0.0454 -0.1935)
OKLCHoklch(49.76% 0.199 283.2)
XYZxyz(17.4227, 10.9607, 58.9433)
Luminance0.1096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46CD #B9CD46
analogous
#4676CD #5A46CD #9E46CD
triadic
#5A46CD #CD5A46 #46CD5A
tetradic
#5A46CD #CD4676 #B9CD46 #46CD9E
square
#5A46CD #CD4676 #B9CD46 #46CD9E
split-complementary
#5A46CD #CD9E46 #76CD46
monochromatic
#2D2078 #402DA8 #5A46CD #8576DA #B0A6E7

Accessibility & contrast

On white

6.58
#5A46CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5A46CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46CD
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46CD#FFFFFF#000000##FFFFFF
##5A46CD1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#0059CA
Tritanopia (blue-blind)
#206883
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a46cd;
/* rgb */ color: rgb(90, 70, 205);
/* oklch */ color: oklch(49.8% 0.199 283.2);
Tailwind
colors: {
  custom: {
    50: '#947bdd',
    500: '#5a46cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a46cd;
$custom-light: #947bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46cd",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 205
  },
  "hsl": {
    "h": 248.889,
    "s": 57.447,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49761,
    "c": 0.19874,
    "h": 283.2
  },
  "luminance": 0.10962
}

Semantic roles & 50–950 ramp

primary
#5A46CD
secondary
#CCD49B
accent
#E147CA
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A46CD

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

Preview Lab → · Contrast checker → · Palette generator →

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