#54165F#54165F

#54165F is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.132 H 321.2°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#54165F
RGBrgb(84, 22, 95)
HSLhsl(291, 62%, 23%)
HSVhsv(291, 77%, 37%)
CMYKcmyk(11.6%, 76.8%, 0%, 62.7%)
CIE-LABlab(21.15, 39.04, -29.49)
CIE-LCHlch(21.15, 48.93, 322.93°)
OKLaboklab(33.74% 0.1025 -0.0825)
OKLCHoklch(33.74% 0.132 321.2)
XYZxyz(6.0084, 3.2852, 11.1419)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54165F #215F16
analogous
#2F165F #54165F #5F1645
triadic
#54165F #5F5416 #165F54
tetradic
#54165F #5F2F16 #215F16 #16455F
square
#54165F #5F2F16 #215F16 #16455F
split-complementary
#54165F #455F16 #165F2F
monochromatic
#160619 #280A2D #54165F #802291 #AC2DC2

Accessibility & contrast

On white

12.67
#54165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#54165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54165F
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54165F#FFFFFF#000000##FFFFFF
##54165F1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#1F355D
Tritanopia (blue-blind)
#552439
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #54165f;
/* rgb */ color: rgb(84, 22, 95);
/* oklch */ color: oklch(33.7% 0.132 321.2);
Tailwind
colors: {
  custom: {
    50: '#875a8d',
    500: '#54165f',
    950: '#000000',
  },
}
SCSS
$custom: #54165f;
$custom-light: #875a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#54165f",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 290.959,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33738,
    "c": 0.13159,
    "h": 321.2
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#54165F
secondary
#49963B
accent
#E5425B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #54165F

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

Preview Lab → · Contrast checker → · Palette generator →

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