#54125F#54125F

#54125F is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.4% C 0.136 H 321.4°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#54125F
RGBrgb(84, 18, 95)
HSLhsl(291, 68%, 22%)
HSVhsv(291, 81%, 37%)
CMYKcmyk(11.6%, 81.1%, 0%, 62.7%)
CIE-LABlab(20.61, 40.59, -30.36)
CIE-LCHlch(20.61, 50.68, 323.21°)
OKLaboklab(33.35% 0.1067 -0.085)
OKLCHoklch(33.35% 0.136 321.4)
XYZxyz(5.9378, 3.1440, 11.1183)
Luminance0.0314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54125F #1D5F12
analogous
#2E125F #54125F #5F1243
triadic
#54125F #5F5412 #125F54
tetradic
#54125F #5F2E12 #1D5F12 #12435F
square
#54125F #5F2E12 #1D5F12 #12435F
split-complementary
#54125F #435F12 #125F2E
monochromatic
#17051A #27082C #54125F #811C92 #AF25C6

Accessibility & contrast

On white

12.89
#54125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#54125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54125F
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54125F#FFFFFF#000000##FFFFFF
##54125F1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#1C345D
Tritanopia (blue-blind)
#552138
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #54125f;
/* rgb */ color: rgb(84, 18, 95);
/* oklch */ color: oklch(33.4% 0.136 321.4);
Tailwind
colors: {
  custom: {
    50: '#87588d',
    500: '#54125f',
    950: '#000000',
  },
}
SCSS
$custom: #54125f;
$custom-light: #87588d;
$custom-dark: #000000;
JSON
{
  "hex": "#54125f",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 291.429,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33354,
    "c": 0.13639,
    "h": 321.4
  },
  "luminance": 0.03144
}

Semantic roles & 50–950 ramp

primary
#54125F
secondary
#449736
accent
#EB3D56
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #54125F

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

Preview Lab → · Contrast checker → · Palette generator →

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