#54117F#54117F

#54117F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.168 H 306.8°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#54117F
RGBrgb(84, 17, 127)
HSLhsl(277, 76%, 28%)
HSVhsv(277, 87%, 50%)
CMYKcmyk(33.9%, 86.6%, 0%, 50.2%)
CIE-LABlab(23.06, 47.86, -47.11)
CIE-LCHlch(23.06, 67.15, 315.45°)
OKLaboklab(35.88% 0.1003 -0.1342)
OKLCHoklch(35.88% 0.168 306.8)
XYZxyz(7.6865, 3.8181, 20.4066)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54117F #3C7F11
analogous
#1D117F #54117F #7F1173
triadic
#54117F #7F5411 #117F54
tetradic
#54117F #7F1D11 #3C7F11 #11737F
square
#54117F #7F1D11 #3C7F11 #11737F
split-complementary
#54117F #737F11 #117F1D
monochromatic
#12041B #300A49 #54117F #7818B5 #9928E2

Accessibility & contrast

On white

11.91
#54117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#54117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54117F
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54117F#FFFFFF#000000##FFFFFF
##54117F1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#4C304A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54117f;
/* rgb */ color: rgb(84, 17, 127);
/* oklch */ color: oklch(35.9% 0.168 306.8);
Tailwind
colors: {
  custom: {
    50: '#895aa5',
    500: '#54117f',
    950: '#000000',
  },
}
SCSS
$custom: #54117f;
$custom-light: #895aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#54117f",
  "rgb": {
    "r": 84,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 276.545,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35875,
    "c": 0.16754,
    "h": 306.8
  },
  "luminance": 0.03818
}

Semantic roles & 50–950 ramp

primary
#54117F
secondary
#68B537
accent
#F3357F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54117F

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

Preview Lab → · Contrast checker → · Palette generator →

#54117F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva