#5A46CC#5A46CC

#5A46CC is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.7% C 0.197 H 283.3°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#5A46CC
RGBrgb(90, 70, 204)
HSLhsl(249, 57%, 54%)
HSVhsv(249, 66%, 80%)
CMYKcmyk(55.9%, 65.7%, 0%, 20%)
CIE-LABlab(39.43, 44.44, -66.84)
CIE-LCHlch(39.43, 80.26, 303.62°)
OKLaboklab(49.68% 0.0455 -0.1922)
OKLCHoklch(49.68% 0.197 283.3)
XYZxyz(17.3023, 10.9126, 58.3096)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46CC #B8CC46
analogous
#4675CC #5A46CC #9D46CC
triadic
#5A46CC #CC5A46 #46CC5A
tetradic
#5A46CC #CC4675 #B8CC46 #46CC9D
square
#5A46CC #CC4675 #B8CC46 #46CC9D
split-complementary
#5A46CC #CC9D46 #75CC46
monochromatic
#2E2177 #402EA7 #5A46CC #8576D9 #B0A6E6

Accessibility & contrast

On white

6.60
#5A46CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5A46CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46CC
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46CC#FFFFFF#000000##FFFFFF
##5A46CC1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#0058C9
Tritanopia (blue-blind)
#226883
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a46cc;
/* rgb */ color: rgb(90, 70, 204);
/* oklch */ color: oklch(49.7% 0.197 283.3);
Tailwind
colors: {
  custom: {
    50: '#937bdd',
    500: '#5a46cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a46cc;
$custom-light: #937bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46cc",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 204
  },
  "hsl": {
    "h": 248.955,
    "s": 56.78,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49677,
    "c": 0.19749,
    "h": 283.3
  },
  "luminance": 0.10914
}

Semantic roles & 50–950 ramp

primary
#5A46CC
secondary
#CBD49A
accent
#E048C9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A46CC

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

Preview Lab → · Contrast checker → · Palette generator →

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