#54127B#54127B

#54127B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.163 H 308.3°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#54127B
RGBrgb(84, 18, 123)
HSLhsl(278, 74%, 28%)
HSVhsv(278, 85%, 48%)
CMYKcmyk(31.7%, 85.4%, 0%, 51.8%)
CIE-LABlab(22.82, 46.63, -44.96)
CIE-LCHlch(22.82, 64.78, 316.04°)
OKLaboklab(35.6% 0.1008 -0.1279)
OKLCHoklch(35.6% 0.163 308.3)
XYZxyz(7.4469, 3.7476, 19.0661)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54127B #397B12
analogous
#1F127B #54127B #7B126E
triadic
#54127B #7B5412 #127B54
tetradic
#54127B #7B1F12 #397B12 #126E7B
square
#54127B #7B1F12 #397B12 #126E7B
split-complementary
#54127B #6E7B12 #127B1F
monochromatic
#12041B #300A46 #54127B #781AB0 #9B28E0

Accessibility & contrast

On white

12.00
#54127B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54127B
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54127B#FFFFFF#000000##FFFFFF
##54127B1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#4E2F48
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #54127b;
/* rgb */ color: rgb(84, 18, 123);
/* oklch */ color: oklch(35.6% 0.163 308.3);
Tailwind
colors: {
  custom: {
    50: '#895aa2',
    500: '#54127b',
    950: '#000000',
  },
}
SCSS
$custom: #54127b;
$custom-light: #895aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#54127b",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 123
  },
  "hsl": {
    "h": 277.714,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35598,
    "c": 0.16286,
    "h": 308.3
  },
  "luminance": 0.03747
}

Semantic roles & 50–950 ramp

primary
#54127B
secondary
#65B138
accent
#F1377C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54127B

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

Preview Lab → · Contrast checker → · Palette generator →

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