#54127D#54127D

#54127D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.165 H 307.5°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#54127D
RGBrgb(84, 18, 125)
HSLhsl(277, 75%, 28%)
HSVhsv(277, 86%, 49%)
CMYKcmyk(32.8%, 85.6%, 0%, 51%)
CIE-LABlab(22.99, 47.08, -45.95)
CIE-LCHlch(22.99, 65.79, 315.70°)
OKLaboklab(35.77% 0.1002 -0.1308)
OKLCHoklch(35.77% 0.165 307.5)
XYZxyz(7.5733, 3.7982, 19.7322)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54127D #3B7D12
analogous
#1E127D #54127D #7D1270
triadic
#54127D #7D5412 #127D54
tetradic
#54127D #7D1E12 #3B7D12 #12707D
square
#54127D #7D1E12 #3B7D12 #12707D
split-complementary
#54127D #707D12 #127D1E
monochromatic
#12041B #300A48 #54127D #781AB2 #9A29E0

Accessibility & contrast

On white

11.93
#54127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54127D
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54127D#FFFFFF#000000##FFFFFF
##54127D1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#4D2F49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54127d;
/* rgb */ color: rgb(84, 18, 125);
/* oklch */ color: oklch(35.8% 0.165 307.5);
Tailwind
colors: {
  custom: {
    50: '#895aa3',
    500: '#54127d',
    950: '#000000',
  },
}
SCSS
$custom: #54127d;
$custom-light: #895aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#54127d",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 277.009,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35773,
    "c": 0.16478,
    "h": 307.5
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#54127D
secondary
#67B338
accent
#F1367E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54127D

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

Preview Lab → · Contrast checker → · Palette generator →

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