#54197C#54197C

#54197C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.157 H 307.1°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#54197C
RGBrgb(84, 25, 124)
HSLhsl(276, 66%, 29%)
HSVhsv(276, 80%, 49%)
CMYKcmyk(32.3%, 79.8%, 0%, 51.4%)
CIE-LABlab(23.79, 44.30, -44.02)
CIE-LCHlch(23.79, 62.45, 315.18°)
OKLaboklab(36.3% 0.0947 -0.1252)
OKLCHoklch(36.3% 0.157 307.1)
XYZxyz(7.6411, 4.0354, 19.4412)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54197C #417C19
analogous
#23197C #54197C #7C1973
triadic
#54197C #7C5419 #197C54
tetradic
#54197C #7C2319 #417C19 #19737C
square
#54197C #7C2319 #417C19 #19737C
split-complementary
#54197C #737C19 #197C23
monochromatic
#110519 #310F49 #54197C #7723AF #9738D7

Accessibility & contrast

On white

11.62
#54197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#54197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54197C
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54197C#FFFFFF#000000##FFFFFF
##54197C1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#4D324A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #54197c;
/* rgb */ color: rgb(84, 25, 124);
/* oklch */ color: oklch(36.3% 0.157 307.1);
Tailwind
colors: {
  custom: {
    50: '#895da3',
    500: '#54197c',
    950: '#000000',
  },
}
SCSS
$custom: #54197c;
$custom-light: #895da3;
$custom-dark: #000000;
JSON
{
  "hex": "#54197c",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 275.758,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36302,
    "c": 0.15698,
    "h": 307.1
  },
  "luminance": 0.04035
}

Semantic roles & 50–950 ramp

primary
#54197C
secondary
#6EB040
accent
#E93E83
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #54197C

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

Preview Lab → · Contrast checker → · Palette generator →

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