#5431C2#5431C2

#5431C2 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.4% C 0.209 H 285.6°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5431C2
RGBrgb(84, 49, 194)
HSLhsl(254, 60%, 48%)
HSVhsv(254, 75%, 76%)
CMYKcmyk(56.7%, 74.7%, 0%, 23.9%)
CIE-LABlab(33.93, 51.87, -70.04)
CIE-LCHlch(33.93, 87.16, 306.52°)
OKLaboklab(45.35% 0.0562 -0.2017)
OKLCHoklch(45.35% 0.209 285.6)
XYZxyz(14.4891, 7.9756, 51.8044)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5431C2 #9FC231
analogous
#3156C2 #5431C2 #9D31C2
triadic
#5431C2 #C25431 #31C254
tetradic
#5431C2 #C23156 #9FC231 #31C29D
square
#5431C2 #C23156 #9FC231 #31C29D
split-complementary
#5431C2 #C29D31 #56C231
monochromatic
#2A1860 #3F2591 #5431C2 #785BD6 #A08CE2

Accessibility & contrast

On white

8.09
#5431C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5431C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5431C2
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5431C2#FFFFFF#000000##FFFFFF
##5431C21.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#004BBF
Tritanopia (blue-blind)
#1D5A77
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5431c2;
/* rgb */ color: rgb(84, 49, 194);
/* oklch */ color: oklch(45.4% 0.209 285.6);
Tailwind
colors: {
  custom: {
    50: '#906dd6',
    500: '#5431c2',
    950: '#000000',
  },
}
SCSS
$custom: #5431c2;
$custom-light: #906dd6;
$custom-dark: #000000;
JSON
{
  "hex": "#5431c2",
  "rgb": {
    "r": 84,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 254.483,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45352,
    "c": 0.20936,
    "h": 285.6
  },
  "luminance": 0.07976
}

Semantic roles & 50–950 ramp

primary
#5431C2
secondary
#BACC83
accent
#E345BD
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5431C2

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

Preview Lab → · Contrast checker → · Palette generator →

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