#54117D#54117D

#54117D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.166 H 307.6°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#54117D
RGBrgb(84, 17, 125)
HSLhsl(277, 76%, 28%)
HSVhsv(277, 86%, 49%)
CMYKcmyk(32.8%, 86.4%, 0%, 51%)
CIE-LABlab(22.88, 47.40, -46.13)
CIE-LCHlch(22.88, 66.14, 315.78°)
OKLaboklab(35.7% 0.101 -0.1313)
OKLCHoklch(35.7% 0.166 307.6)
XYZxyz(7.5575, 3.7665, 19.7269)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54117D #3A7D11
analogous
#1E117D #54117D #7D1170
triadic
#54117D #7D5411 #117D54
tetradic
#54117D #7D1E11 #3A7D11 #11707D
square
#54117D #7D1E11 #3A7D11 #11707D
split-complementary
#54117D #707D11 #117D1E
monochromatic
#12041B #300A47 #54117D #7818B3 #9B27E2

Accessibility & contrast

On white

11.98
#54117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#54117D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54117D
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54117D#FFFFFF#000000##FFFFFF
##54117D1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#4D2F49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54117d;
/* rgb */ color: rgb(84, 17, 125);
/* oklch */ color: oklch(35.7% 0.166 307.6);
Tailwind
colors: {
  custom: {
    50: '#895aa3',
    500: '#54117d',
    950: '#000000',
  },
}
SCSS
$custom: #54117d;
$custom-light: #895aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#54117d",
  "rgb": {
    "r": 84,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 277.222,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35698,
    "c": 0.16563,
    "h": 307.6
  },
  "luminance": 0.03766
}

Semantic roles & 50–950 ramp

primary
#54117D
secondary
#66B337
accent
#F3357D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54117D

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

Preview Lab → · Contrast checker → · Palette generator →

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