#54197A#54197A

#54197A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.155 H 307.9°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#54197A
RGBrgb(84, 25, 122)
HSLhsl(276, 66%, 29%)
HSVhsv(276, 80%, 48%)
CMYKcmyk(31.1%, 79.5%, 0%, 52.2%)
CIE-LABlab(23.62, 43.82, -43.02)
CIE-LCHlch(23.62, 61.41, 315.53°)
OKLaboklab(36.13% 0.0952 -0.1222)
OKLCHoklch(36.13% 0.155 307.9)
XYZxyz(7.5159, 3.9853, 18.7819)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54197A #3F7A19
analogous
#24197A #54197A #7A1970
triadic
#54197A #7A5419 #197A54
tetradic
#54197A #7A2419 #3F7A19 #19707A
square
#54197A #7A2419 #3F7A19 #19707A
split-complementary
#54197A #707A19 #197A24
monochromatic
#110519 #310F47 #54197A #7723AD #9837D6

Accessibility & contrast

On white

11.69
#54197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#54197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54197A
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54197A#FFFFFF#000000##FFFFFF
##54197A1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#4E3149
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #54197a;
/* rgb */ color: rgb(84, 25, 122);
/* oklch */ color: oklch(36.1% 0.155 307.9);
Tailwind
colors: {
  custom: {
    50: '#885da1',
    500: '#54197a',
    950: '#000000',
  },
}
SCSS
$custom: #54197a;
$custom-light: #885da1;
$custom-dark: #000000;
JSON
{
  "hex": "#54197a",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 276.495,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36134,
    "c": 0.15493,
    "h": 307.9
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#54197A
secondary
#6BAF40
accent
#E93F81
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54197A

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

Preview Lab → · Contrast checker → · Palette generator →

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