#54117C#54117C

#54117C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.165 H 308.0°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#54117C
RGBrgb(84, 17, 124)
HSLhsl(278, 76%, 28%)
HSVhsv(278, 86%, 49%)
CMYKcmyk(32.3%, 86.3%, 0%, 51.4%)
CIE-LABlab(22.80, 47.18, -45.64)
CIE-LCHlch(22.80, 65.64, 315.95°)
OKLaboklab(35.61% 0.1013 -0.1298)
OKLCHoklch(35.61% 0.165 308)
XYZxyz(7.4939, 3.7411, 19.3922)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54117C #397C11
analogous
#1E117C #54117C #7C116F
triadic
#54117C #7C5411 #117C54
tetradic
#54117C #7C1E11 #397C11 #116F7C
square
#54117C #7C1E11 #397C11 #116F7C
split-complementary
#54117C #6F7C11 #117C1E
monochromatic
#12041B #300A46 #54117C #7818B2 #9B26E1

Accessibility & contrast

On white

12.01
#54117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54117C
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54117C#FFFFFF#000000##FFFFFF
##54117C1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#4D2F48
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #54117c;
/* rgb */ color: rgb(84, 17, 124);
/* oklch */ color: oklch(35.6% 0.165 308.0);
Tailwind
colors: {
  custom: {
    50: '#895aa3',
    500: '#54117c',
    950: '#000000',
  },
}
SCSS
$custom: #54117c;
$custom-light: #895aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#54117c",
  "rgb": {
    "r": 84,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 277.57,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3561,
    "c": 0.16467,
    "h": 308
  },
  "luminance": 0.03741
}

Semantic roles & 50–950 ramp

primary
#54117C
secondary
#65B237
accent
#F2357C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54117C

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

Preview Lab → · Contrast checker → · Palette generator →

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