#54125B#54125B

#54125B is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.133 H 323.7°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#54125B
RGBrgb(84, 18, 91)
HSLhsl(294, 67%, 21%)
HSVhsv(294, 80%, 36%)
CMYKcmyk(7.7%, 80.2%, 0%, 64.3%)
CIE-LABlab(20.33, 39.79, -28.14)
CIE-LCHlch(20.33, 48.74, 324.73°)
OKLaboklab(33.07% 0.107 -0.0785)
OKLCHoklch(33.07% 0.133 323.7)
XYZxyz(5.7606, 3.0731, 10.1853)
Luminance0.0307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54125B #195B12
analogous
#30125B #54125B #5B123E
triadic
#54125B #5B5412 #125B54
tetradic
#54125B #5B3012 #195B12 #123E5B
square
#54125B #5B3012 #195B12 #123E5B
split-complementary
#54125B #3E5B12 #125B30
monochromatic
#18051A #250828 #54125B #831C8E #B226C1

Accessibility & contrast

On white

13.01
#54125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#54125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54125B
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54125B#FFFFFF#000000##FFFFFF
##54125B1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#1F3459
Tritanopia (blue-blind)
#562036
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #54125b;
/* rgb */ color: rgb(84, 18, 91);
/* oklch */ color: oklch(33.1% 0.133 323.7);
Tailwind
colors: {
  custom: {
    50: '#87588a',
    500: '#54125b',
    950: '#000000',
  },
}
SCSS
$custom: #54125b;
$custom-light: #87588a;
$custom-dark: #000000;
JSON
{
  "hex": "#54125b",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 294.247,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.33068,
    "c": 0.13273,
    "h": 323.7
  },
  "luminance": 0.03073
}

Semantic roles & 50–950 ramp

primary
#54125B
secondary
#3E9335
accent
#EA3E4E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #54125B

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

Preview Lab → · Contrast checker → · Palette generator →

#54125B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva