#54159E#54159E

#54159E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.1% C 0.195 H 296.4°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#54159E
RGBrgb(84, 21, 158)
HSLhsl(268, 77%, 35%)
HSVhsv(268, 87%, 62%)
CMYKcmyk(46.8%, 86.7%, 0%, 38%)
CIE-LABlab(26.42, 53.95, -60.87)
CIE-LCHlch(26.42, 81.34, 311.55°)
OKLaboklab(39.08% 0.0866 -0.1746)
OKLCHoklch(39.08% 0.195 296.4)
XYZxyz(10.0942, 4.8895, 32.7531)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54159E #5F9E15
analogous
#151B9E #54159E #98159E
triadic
#54159E #9E5415 #159E54
tetradic
#54159E #9E151B #5F9E15 #159E98
square
#54159E #9E151B #5F9E15 #159E98
split-complementary
#54159E #9E9815 #1B9E15
monochromatic
#1B0732 #370E68 #54159E #711CD4 #9047E7

Accessibility & contrast

On white

10.62
#54159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#54159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54159E
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54159E#FFFFFF#000000##FFFFFF
##54159E1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA2
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#3F405D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #54159e;
/* rgb */ color: rgb(84, 21, 158);
/* oklch */ color: oklch(39.1% 0.195 296.4);
Tailwind
colors: {
  custom: {
    50: '#8d5ebc',
    500: '#54159e',
    950: '#000000',
  },
}
SCSS
$custom: #54159e;
$custom-light: #8d5ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#54159e",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 267.591,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3908,
    "c": 0.19487,
    "h": 296.4
  },
  "luminance": 0.0489
}

Semantic roles & 50–950 ramp

primary
#54159E
secondary
#8DC747
accent
#F3359C
background
#F9F5FB
surface
#F1EAF7
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #54159E

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

Preview Lab → · Contrast checker → · Palette generator →

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