#54197F#54197F

#54197F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.160 H 306.0°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#54197F
RGBrgb(84, 25, 127)
HSLhsl(275, 67%, 30%)
HSVhsv(275, 80%, 50%)
CMYKcmyk(33.9%, 80.3%, 0%, 50.2%)
CIE-LABlab(24.04, 45.01, -45.51)
CIE-LCHlch(24.04, 64.01, 314.68°)
OKLaboklab(36.56% 0.094 -0.1295)
OKLCHoklch(36.56% 0.16 306)
XYZxyz(7.8337, 4.1125, 20.4557)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54197F #447F19
analogous
#21197F #54197F #7F1977
triadic
#54197F #7F5419 #197F54
tetradic
#54197F #7F2119 #447F19 #19777F
square
#54197F #7F2119 #447F19 #19777F
split-complementary
#54197F #777F19 #197F21
monochromatic
#11051A #320F4C #54197F #7623B2 #963AD8

Accessibility & contrast

On white

11.52
#54197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#54197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54197F
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54197F#FFFFFF#000000##FFFFFF
##54197F1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#4C334C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #54197f;
/* rgb */ color: rgb(84, 25, 127);
/* oklch */ color: oklch(36.6% 0.160 306.0);
Tailwind
colors: {
  custom: {
    50: '#895da5',
    500: '#54197f',
    950: '#000000',
  },
}
SCSS
$custom: #54197f;
$custom-light: #895da5;
$custom-dark: #000000;
JSON
{
  "hex": "#54197f",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 274.706,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36557,
    "c": 0.16006,
    "h": 306
  },
  "luminance": 0.04112
}

Semantic roles & 50–950 ramp

primary
#54197F
secondary
#71B341
accent
#EA3E86
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #54197F

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

Preview Lab → · Contrast checker → · Palette generator →

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