#54127C#54127C

#54127C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.164 H 307.9°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#54127C
RGBrgb(84, 18, 124)
HSLhsl(277, 75%, 28%)
HSVhsv(277, 85%, 49%)
CMYKcmyk(32.3%, 85.5%, 0%, 51.4%)
CIE-LABlab(22.91, 46.86, -45.46)
CIE-LCHlch(22.91, 65.28, 315.87°)
OKLaboklab(35.69% 0.1005 -0.1293)
OKLCHoklch(35.69% 0.164 307.9)
XYZxyz(7.5098, 3.7728, 19.3975)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54127C #3A7C12
analogous
#1F127C #54127C #7C126F
triadic
#54127C #7C5412 #127C54
tetradic
#54127C #7C1F12 #3A7C12 #126F7C
square
#54127C #7C1F12 #3A7C12 #126F7C
split-complementary
#54127C #6F7C12 #127C1F
monochromatic
#12041B #300A47 #54127C #781AB1 #9B29E0

Accessibility & contrast

On white

11.97
#54127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54127C
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54127C#FFFFFF#000000##FFFFFF
##54127C1.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54127c;
/* rgb */ color: rgb(84, 18, 124);
/* oklch */ color: oklch(35.7% 0.164 307.9);
Tailwind
colors: {
  custom: {
    50: '#895aa3',
    500: '#54127c',
    950: '#000000',
  },
}
SCSS
$custom: #54127c;
$custom-light: #895aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#54127c",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 277.358,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35686,
    "c": 0.16382,
    "h": 307.9
  },
  "luminance": 0.03773
}

Semantic roles & 50–950 ramp

primary
#54127C
secondary
#66B238
accent
#F1377D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54127C

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

Preview Lab → · Contrast checker → · Palette generator →

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