#54127E#54127E

#54127E is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.166 H 307.1°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#54127E
RGBrgb(84, 18, 126)
HSLhsl(277, 75%, 28%)
HSVhsv(277, 86%, 49%)
CMYKcmyk(33.3%, 85.7%, 0%, 50.6%)
CIE-LABlab(23.08, 47.31, -46.44)
CIE-LCHlch(23.08, 66.30, 315.53°)
OKLaboklab(35.86% 0.0999 -0.1322)
OKLCHoklch(35.86% 0.166 307.1)
XYZxyz(7.6375, 3.8239, 20.0704)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54127E #3C7E12
analogous
#1E127E #54127E #7E1272
triadic
#54127E #7E5412 #127E54
tetradic
#54127E #7E1E12 #3C7E12 #12727E
square
#54127E #7E1E12 #3C7E12 #12727E
split-complementary
#54127E #727E12 #127E1E
monochromatic
#12041B #300A48 #54127E #781AB4 #9A2AE1

Accessibility & contrast

On white

11.90
#54127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#54127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54127E
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54127E#FFFFFF#000000##FFFFFF
##54127E1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#4D304A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54127e;
/* rgb */ color: rgb(84, 18, 126);
/* oklch */ color: oklch(35.9% 0.166 307.1);
Tailwind
colors: {
  custom: {
    50: '#895aa4',
    500: '#54127e',
    950: '#000000',
  },
}
SCSS
$custom: #54127e;
$custom-light: #895aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#54127e",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 276.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35861,
    "c": 0.16575,
    "h": 307.1
  },
  "luminance": 0.03824
}

Semantic roles & 50–950 ramp

primary
#54127E
secondary
#68B438
accent
#F2367F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54127E

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

Preview Lab → · Contrast checker → · Palette generator →

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