#54127F#54127F

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

Color values

HEX#54127F
RGBrgb(84, 18, 127)
HSLhsl(276, 75%, 28%)
HSVhsv(276, 86%, 50%)
CMYKcmyk(33.9%, 85.8%, 0%, 50.2%)
CIE-LABlab(23.17, 47.54, -46.93)
CIE-LCHlch(23.17, 66.80, 315.37°)
OKLaboklab(35.95% 0.0996 -0.1337)
OKLCHoklch(35.95% 0.167 306.7)
XYZxyz(7.7024, 3.8498, 20.4119)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54127F #3D7F12
analogous
#1D127F #54127F #7F1273
triadic
#54127F #7F5412 #127F54
tetradic
#54127F #7F1D12 #3D7F12 #12737F
square
#54127F #7F1D12 #3D7F12 #12737F
split-complementary
#54127F #737F12 #127F1D
monochromatic
#12041B #310A49 #54127F #771AB5 #992BE1

Accessibility & contrast

On white

11.86
#54127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#54127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54127F
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54127F#FFFFFF#000000##FFFFFF
##54127F1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#4C304A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54127f;
/* rgb */ color: rgb(84, 18, 127);
/* oklch */ color: oklch(35.9% 0.167 306.7);
Tailwind
colors: {
  custom: {
    50: '#895aa5',
    500: '#54127f',
    950: '#000000',
  },
}
SCSS
$custom: #54127f;
$custom-light: #895aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#54127f",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 276.33,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3595,
    "c": 0.16671,
    "h": 306.7
  },
  "luminance": 0.0385
}

Semantic roles & 50–950 ramp

primary
#54127F
secondary
#69B538
accent
#F23680
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54127F

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

Preview Lab → · Contrast checker → · Palette generator →

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