#5431CA#5431CA

#5431CA is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.1% C 0.219 H 284.3°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5431CA
RGBrgb(84, 49, 202)
HSLhsl(254, 61%, 49%)
HSVhsv(254, 76%, 79%)
CMYKcmyk(58.4%, 75.7%, 0%, 20.8%)
CIE-LABlab(34.69, 54.16, -73.47)
CIE-LCHlch(34.69, 91.28, 306.39°)
OKLaboklab(46.11% 0.0542 -0.2117)
OKLCHoklch(46.11% 0.219 284.3)
XYZxyz(15.4119, 8.3447, 56.6642)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5431CA #A7CA31
analogous
#315BCA #5431CA #A031CA
triadic
#5431CA #CA5431 #31CA54
tetradic
#5431CA #CA315B #A7CA31 #31CAA0
square
#5431CA #CA315B #A7CA31 #31CAA0
split-complementary
#5431CA #CAA031 #5BCA31
monochromatic
#2B1967 #402599 #5431CA #7B60D8 #A491E4

Accessibility & contrast

On white

7.87
#5431CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5431CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5431CA
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5431CA#FFFFFF#000000##FFFFFF
##5431CA1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CE
Deuteranopia (green-blind)
#004DC7
Tritanopia (blue-blind)
#0B5D7C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5431ca;
/* rgb */ color: rgb(84, 49, 202);
/* oklch */ color: oklch(46.1% 0.219 284.3);
Tailwind
colors: {
  custom: {
    50: '#916edb',
    500: '#5431ca',
    950: '#000000',
  },
}
SCSS
$custom: #5431ca;
$custom-light: #916edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5431ca",
  "rgb": {
    "r": 84,
    "g": 49,
    "b": 202
  },
  "hsl": {
    "h": 253.725,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46114,
    "c": 0.21853,
    "h": 284.3
  },
  "luminance": 0.08346
}

Semantic roles & 50–950 ramp

primary
#5431CA
secondary
#BFCF88
accent
#E444BF
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #5431CA

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

Preview Lab → · Contrast checker → · Palette generator →

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