#54107E#54107E

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

Color values

HEX#54107E
RGBrgb(84, 16, 126)
HSLhsl(277, 77%, 28%)
HSVhsv(277, 87%, 49%)
CMYKcmyk(33.3%, 87.3%, 0%, 50.6%)
CIE-LABlab(22.87, 47.93, -46.79)
CIE-LCHlch(22.87, 66.98, 315.69°)
OKLaboklab(35.71% 0.1013 -0.1332)
OKLCHoklch(35.71% 0.167 307.3)
XYZxyz(7.6065, 3.7619, 20.0600)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54107E #3A7E10
analogous
#1D107E #54107E #7E1071
triadic
#54107E #7E5410 #107E54
tetradic
#54107E #7E1D10 #3A7E10 #10717E
square
#54107E #7E1D10 #3A7E10 #10717E
split-complementary
#54107E #717E10 #107E1D
monochromatic
#12031B #300948 #54107E #7817B4 #9B25E3

Accessibility & contrast

On white

11.98
#54107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#54107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54107E
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54107E#FFFFFF#000000##FFFFFF
##54107E1.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)
#003481
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#4D2F49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54107e;
/* rgb */ color: rgb(84, 16, 126);
/* oklch */ color: oklch(35.7% 0.167 307.3);
Tailwind
colors: {
  custom: {
    50: '#895aa4',
    500: '#54107e',
    950: '#000000',
  },
}
SCSS
$custom: #54107e;
$custom-light: #895aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#54107e",
  "rgb": {
    "r": 84,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 277.091,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35714,
    "c": 0.16739,
    "h": 307.3
  },
  "luminance": 0.03762
}

Semantic roles & 50–950 ramp

primary
#54107E
secondary
#66B436
accent
#F4347D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54107E

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

Preview Lab → · Contrast checker → · Palette generator →

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