#54319E#54319E

#54319E is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.167 H 292.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#54319E
RGBrgb(84, 49, 158)
HSLhsl(259, 53%, 41%)
HSVhsv(259, 69%, 62%)
CMYKcmyk(46.8%, 69%, 0%, 38%)
CIE-LABlab(30.76, 41.55, -53.76)
CIE-LCHlch(30.76, 67.95, 307.70°)
OKLaboklab(42.13% 0.0638 -0.1539)
OKLCHoklch(42.13% 0.167 292.5)
XYZxyz(10.9243, 6.5497, 33.0298)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54319E #7B9E31
analogous
#31449E #54319E #8A319E
triadic
#54319E #9E5431 #319E54
tetradic
#54319E #9E3144 #7B9E31 #319E8A
square
#54319E #9E3144 #7B9E31 #319E8A
split-complementary
#54319E #9E8A31 #449E31
monochromatic
#221441 #3B236F #54319E #6F46C6 #9475D4

Accessibility & contrast

On white

9.09
#54319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#54319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54319E
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54319E#FFFFFF#000000##FFFFFF
##54319E1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#00469C
Tritanopia (blue-blind)
#3E4C63
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #54319e;
/* rgb */ color: rgb(84, 49, 158);
/* oklch */ color: oklch(42.1% 0.167 292.5);
Tailwind
colors: {
  custom: {
    50: '#8b6cbb',
    500: '#54319e',
    950: '#000000',
  },
}
SCSS
$custom: #54319e;
$custom-light: #8b6cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#54319e",
  "rgb": {
    "r": 84,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 259.266,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42125,
    "c": 0.16664,
    "h": 292.5
  },
  "luminance": 0.0655
}

Semantic roles & 50–950 ramp

primary
#54319E
secondary
#A3BC6E
accent
#DC4CAE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #54319E

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

Preview Lab → · Contrast checker → · Palette generator →

#54319E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva