#5942E2#5942E2

#5942E2 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.9% C 0.229 H 281.1°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#5942E2
RGBrgb(89, 66, 226)
HSLhsl(249, 73%, 57%)
HSVhsv(249, 71%, 89%)
CMYKcmyk(60.6%, 70.8%, 0%, 11.4%)
CIE-LABlab(40.43, 53.14, -77.85)
CIE-LCHlch(40.43, 94.26, 304.32°)
OKLaboklab(50.95% 0.044 -0.2245)
OKLCHoklch(50.95% 0.229 281.1)
XYZxyz(19.7912, 11.5098, 73.1155)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5942E2 #CBE242
analogous
#427BE2 #5942E2 #A942E2
triadic
#5942E2 #E25942 #42E259
tetradic
#5942E2 #E2427B #CBE242 #42E2A9
square
#5942E2 #E2427B #CBE242 #42E2A9
split-complementary
#5942E2 #E2A942 #7BE242
monochromatic
#281793 #371FC8 #5942E2 #8877EA #B6ACF2

Accessibility & contrast

On white

6.36
#5942E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5942E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5942E2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5942E2#FFFFFF#000000##FFFFFF
##5942E21.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#0059DF
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5942e2;
/* rgb */ color: rgb(89, 66, 226);
/* oklch */ color: oklch(50.9% 0.229 281.1);
Tailwind
colors: {
  custom: {
    50: '#9779ec',
    500: '#5942e2',
    950: '#000000',
  },
}
SCSS
$custom: #5942e2;
$custom-light: #9779ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5942e2",
  "rgb": {
    "r": 89,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 248.625,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.50947,
    "c": 0.22873,
    "h": 281.1
  },
  "luminance": 0.11511
}

Semantic roles & 50–950 ramp

primary
#5942E2
secondary
#D7E09F
accent
#F038D6
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5942E2

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

Preview Lab → · Contrast checker → · Palette generator →

#5942E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva