#5431B5#5431B5

#5431B5 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.1% C 0.194 H 287.8°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#5431B5
RGBrgb(84, 49, 181)
HSLhsl(256, 57%, 45%)
HSVhsv(256, 73%, 71%)
CMYKcmyk(53.6%, 72.9%, 0%, 29%)
CIE-LABlab(32.74, 48.15, -64.33)
CIE-LCHlch(32.74, 80.36, 306.81°)
OKLaboklab(44.15% 0.0593 -0.185)
OKLCHoklch(44.15% 0.194 287.8)
XYZxyz(13.0925, 7.4170, 44.4489)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5431B5 #92B531
analogous
#3150B5 #5431B5 #9631B5
triadic
#5431B5 #B55431 #31B554
tetradic
#5431B5 #B53150 #92B531 #31B596
square
#5431B5 #B53150 #92B531 #31B596
split-complementary
#5431B5 #B59631 #50B531
monochromatic
#271755 #3E2485 #5431B5 #7453D0 #9B83DD

Accessibility & contrast

On white

8.46
#5431B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5431B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5431B5
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5431B5#FFFFFF#000000##FFFFFF
##5431B51.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#2D5570
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5431b5;
/* rgb */ color: rgb(84, 49, 181);
/* oklch */ color: oklch(44.1% 0.194 287.8);
Tailwind
colors: {
  custom: {
    50: '#8e6dcc',
    500: '#5431b5',
    950: '#000000',
  },
}
SCSS
$custom: #5431b5;
$custom-light: #8e6dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5431b5",
  "rgb": {
    "r": 84,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 255.909,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44146,
    "c": 0.19423,
    "h": 287.8
  },
  "luminance": 0.07418
}

Semantic roles & 50–950 ramp

primary
#5431B5
secondary
#B3C77B
accent
#E147B8
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #5431B5

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

Preview Lab → · Contrast checker → · Palette generator →

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