#5946C2#5946C2

#5946C2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.8% C 0.185 H 284.2°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5946C2
RGBrgb(89, 70, 194)
HSLhsl(249, 50%, 52%)
HSVhsv(249, 64%, 76%)
CMYKcmyk(54.1%, 63.9%, 0%, 23.9%)
CIE-LABlab(38.55, 41.21, -62.47)
CIE-LCHlch(38.55, 74.84, 303.41°)
OKLaboklab(48.77% 0.0453 -0.1794)
OKLCHoklch(48.77% 0.185 284.2)
XYZxyz(16.0446, 10.3983, 52.1901)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5946C2 #AFC246
analogous
#4671C2 #5946C2 #9746C2
triadic
#5946C2 #C25946 #46C259
tetradic
#5946C2 #C24671 #AFC246 #46C297
square
#5946C2 #C24671 #AFC246 #46C297
split-complementary
#5946C2 #C29746 #71C246
monochromatic
#2E236A #423299 #5946C2 #8274D1 #ACA2E0

Accessibility & contrast

On white

6.82
#5946C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5946C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5946C2
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5946C2#FFFFFF#000000##FFFFFF
##5946C21.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#0057C0
Tritanopia (blue-blind)
#2B657D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5946c2;
/* rgb */ color: rgb(89, 70, 194);
/* oklch */ color: oklch(48.8% 0.185 284.2);
Tailwind
colors: {
  custom: {
    50: '#917ad5',
    500: '#5946c2',
    950: '#000000',
  },
}
SCSS
$custom: #5946c2;
$custom-light: #917ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#5946c2",
  "rgb": {
    "r": 89,
    "g": 70,
    "b": 194
  },
  "hsl": {
    "h": 249.194,
    "s": 50.407,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48766,
    "c": 0.18501,
    "h": 284.2
  },
  "luminance": 0.10399
}

Semantic roles & 50–950 ramp

primary
#5946C2
secondary
#C5CD97
accent
#DA4EC4
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5946C2

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

Preview Lab → · Contrast checker → · Palette generator →

#5946C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva