#54195F#54195F

#54195F is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.128 H 320.9°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#54195F
RGBrgb(84, 25, 95)
HSLhsl(291, 58%, 24%)
HSVhsv(291, 74%, 37%)
CMYKcmyk(11.6%, 73.7%, 0%, 62.7%)
CIE-LABlab(21.60, 37.76, -28.77)
CIE-LCHlch(21.60, 47.47, 322.70°)
OKLaboklab(34.06% 0.0991 -0.0804)
OKLCHoklch(34.06% 0.128 320.9)
XYZxyz(6.0691, 3.4066, 11.1621)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54195F #245F19
analogous
#31195F #54195F #5F1947
triadic
#54195F #5F5419 #195F54
tetradic
#54195F #5F3119 #245F19 #19475F
square
#54195F #5F3119 #245F19 #19475F
split-complementary
#54195F #475F19 #195F31
monochromatic
#150618 #290C2F #54195F #7F268F #AA32C0

Accessibility & contrast

On white

12.49
#54195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#54195F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54195F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54195F#FFFFFF#000000##FFFFFF
##54195F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013061
Deuteranopia (green-blind)
#21365D
Tritanopia (blue-blind)
#55263A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #54195f;
/* rgb */ color: rgb(84, 25, 95);
/* oklch */ color: oklch(34.1% 0.128 320.9);
Tailwind
colors: {
  custom: {
    50: '#875c8d',
    500: '#54195f',
    950: '#000000',
  },
}
SCSS
$custom: #54195f;
$custom-light: #875c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#54195f",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 290.571,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34062,
    "c": 0.12761,
    "h": 320.9
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#54195F
secondary
#4C953F
accent
#E2465F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #54195F

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

Preview Lab → · Contrast checker → · Palette generator →

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