#54125E#54125E

#54125E is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.3% C 0.135 H 322.0°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#54125E
RGBrgb(84, 18, 94)
HSLhsl(292, 68%, 22%)
HSVhsv(292, 81%, 37%)
CMYKcmyk(10.6%, 80.9%, 0%, 63.1%)
CIE-LABlab(20.54, 40.39, -29.81)
CIE-LCHlch(20.54, 50.19, 323.57°)
OKLaboklab(33.28% 0.1068 -0.0834)
OKLCHoklch(33.28% 0.135 322)
XYZxyz(5.8926, 3.1259, 10.8805)
Luminance0.0313 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54125E #1C5E12
analogous
#2E125E #54125E #5E1242
triadic
#54125E #5E5412 #125E54
tetradic
#54125E #5E2E12 #1C5E12 #12425E
square
#54125E #5E2E12 #1C5E12 #12425E
split-complementary
#54125E #425E12 #125E2E
monochromatic
#17051A #26082B #54125E #821C91 #B026C5

Accessibility & contrast

On white

12.92
#54125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54125E
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54125E#FFFFFF#000000##FFFFFF
##54125E1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#1D345C
Tritanopia (blue-blind)
#552137
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #54125e;
/* rgb */ color: rgb(84, 18, 94);
/* oklch */ color: oklch(33.3% 0.135 322.0);
Tailwind
colors: {
  custom: {
    50: '#87588c',
    500: '#54125e',
    950: '#000000',
  },
}
SCSS
$custom: #54125e;
$custom-light: #87588c;
$custom-dark: #000000;
JSON
{
  "hex": "#54125e",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 292.105,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33282,
    "c": 0.13547,
    "h": 322
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#54125E
secondary
#429635
accent
#EB3D54
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #54125E

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

Preview Lab → · Contrast checker → · Palette generator →

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