#5423E2#5423E2

#5423E2 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 47.2% C 0.255 H 282.2°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#5423E2
RGBrgb(84, 35, 226)
HSLhsl(255, 77%, 51%)
HSVhsv(255, 85%, 89%)
CMYKcmyk(62.8%, 84.5%, 0%, 11.4%)
CIE-LABlab(35.16, 66.53, -86.56)
CIE-LCHlch(35.16, 109.17, 307.54°)
OKLaboklab(47.16% 0.0539 -0.2497)
OKLCHoklch(47.16% 0.255 282.2)
XYZxyz(17.9804, 8.5765, 72.6447)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5423E2 #B1E223
analogous
#2351E2 #5423E2 #B423E2
triadic
#5423E2 #E25423 #23E254
tetradic
#5423E2 #E22351 #B1E223 #23E2B4
square
#5423E2 #E22351 #B1E223 #23E2B4
split-complementary
#5423E2 #E2B423 #51E223
monochromatic
#2B107A #3F17B1 #5423E2 #7E59E9 #A88FF0

Accessibility & contrast

On white

7.73
#5423E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5423E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5423E2
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5423E2#FFFFFF#000000##FFFFFF
##5423E21.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059E7
Deuteranopia (green-blind)
#004CDF
Tritanopia (blue-blind)
#006287
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5423e2;
/* rgb */ color: rgb(84, 35, 226);
/* oklch */ color: oklch(47.2% 0.255 282.2);
Tailwind
colors: {
  custom: {
    50: '#9668ed',
    500: '#5423e2',
    950: '#000000',
  },
}
SCSS
$custom: #5423e2;
$custom-light: #9668ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5423e2",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 226
  },
  "hsl": {
    "h": 255.393,
    "s": 76.707,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47164,
    "c": 0.25544,
    "h": 282.2
  },
  "luminance": 0.08578
}

Semantic roles & 50–950 ramp

primary
#5423E2
secondary
#C5DB86
accent
#F335C2
background
#FAF6FE
surface
#F4EBFD
border
#CEC6D5
text
#0F0717
muted
#7F7A85

Preview Lab

Preview with #5423E2

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

Preview Lab → · Contrast checker → · Palette generator →

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