#5A46C8#5A46C8

#5A46C8 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 49.3% C 0.192 H 283.8°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5A46C8
RGBrgb(90, 70, 200)
HSLhsl(249, 54%, 53%)
HSVhsv(249, 65%, 78%)
CMYKcmyk(55%, 65%, 0%, 21.6%)
CIE-LABlab(39.11, 43.22, -65.05)
CIE-LCHlch(39.11, 78.10, 303.60°)
OKLaboklab(49.34% 0.046 -0.1869)
OKLCHoklch(49.34% 0.192 283.8)
XYZxyz(16.8288, 10.7231, 55.8154)
Luminance0.1072 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A46C8 #B4C846
analogous
#4673C8 #5A46C8 #9B46C8
triadic
#5A46C8 #C85A46 #46C85A
tetradic
#5A46C8 #C84673 #B4C846 #46C89B
square
#5A46C8 #C84673 #B4C846 #46C89B
split-complementary
#5A46C8 #C89B46 #73C846
monochromatic
#2E2272 #4130A1 #5A46C8 #8475D6 #AEA4E4

Accessibility & contrast

On white

6.68
#5A46C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5A46C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A46C8
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A46C8#FFFFFF#000000##FFFFFF
##5A46C81.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CC
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#276681
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a46c8;
/* rgb */ color: rgb(90, 70, 200);
/* oklch */ color: oklch(49.3% 0.192 283.8);
Tailwind
colors: {
  custom: {
    50: '#937bda',
    500: '#5a46c8',
    950: '#000000',
  },
}
SCSS
$custom: #5a46c8;
$custom-light: #937bda;
$custom-dark: #000000;
JSON
{
  "hex": "#5a46c8",
  "rgb": {
    "r": 90,
    "g": 70,
    "b": 200
  },
  "hsl": {
    "h": 249.231,
    "s": 54.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.49344,
    "c": 0.19249,
    "h": 283.8
  },
  "luminance": 0.10724
}

Semantic roles & 50–950 ramp

primary
#5A46C8
secondary
#C8D199
accent
#DE4AC7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A46C8

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

Preview Lab → · Contrast checker → · Palette generator →

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