#54127A#54127A

#54127A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.162 H 308.7°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#54127A
RGBrgb(84, 18, 122)
HSLhsl(278, 74%, 27%)
HSVhsv(278, 85%, 48%)
CMYKcmyk(31.1%, 85.2%, 0%, 52.2%)
CIE-LABlab(22.73, 46.40, -44.47)
CIE-LCHlch(22.73, 64.27, 316.22°)
OKLaboklab(35.51% 0.1011 -0.1264)
OKLCHoklch(35.51% 0.162 308.7)
XYZxyz(7.3846, 3.7227, 18.7381)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54127A #387A12
analogous
#20127A #54127A #7A126C
triadic
#54127A #7A5412 #127A54
tetradic
#54127A #7A2012 #387A12 #126C7A
square
#54127A #7A2012 #387A12 #126C7A
split-complementary
#54127A #6C7A12 #127A20
monochromatic
#12041B #2F0A45 #54127A #791AAF #9C27DF

Accessibility & contrast

On white

12.04
#54127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#54127A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54127A
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54127A#FFFFFF#000000##FFFFFF
##54127A1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#4E2E47
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #54127a;
/* rgb */ color: rgb(84, 18, 122);
/* oklch */ color: oklch(35.5% 0.162 308.7);
Tailwind
colors: {
  custom: {
    50: '#895aa1',
    500: '#54127a',
    950: '#000000',
  },
}
SCSS
$custom: #54127a;
$custom-light: #895aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#54127a",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 278.077,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35512,
    "c": 0.16189,
    "h": 308.7
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#54127A
secondary
#64B038
accent
#F1377B
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54127A

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

Preview Lab → · Contrast checker → · Palette generator →

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