#54255D#54255D

#54255D is a dark, moderate purple. Relative luminance 0.040; OKLCH L 35.5% C 0.107 H 321.0°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#54255D
RGBrgb(84, 37, 93)
HSLhsl(290, 43%, 25%)
HSVhsv(290, 60%, 36%)
CMYKcmyk(9.7%, 60.2%, 0%, 63.5%)
CIE-LABlab(23.67, 31.30, -24.17)
CIE-LCHlch(23.67, 39.55, 322.32°)
OKLaboklab(35.52% 0.0828 -0.0671)
OKLCHoklch(35.52% 0.107 321)
XYZxyz(6.2933, 3.9986, 10.7941)
Luminance0.0400 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54255D #2E5D25
analogous
#38255D #54255D #5D254A
triadic
#54255D #5D5425 #255D54
tetradic
#54255D #5D3825 #2E5D25 #254A5D
square
#54255D #5D3825 #2E5D25 #254A5D
split-complementary
#54255D #4A5D25 #255D38
monochromatic
#140916 #2C1431 #54255D #7C3689 #A348B5

Accessibility & contrast

On white

11.67
#54255D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#54255D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54255D
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54255D#FFFFFF#000000##FFFFFF
##54255D1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A355F
Deuteranopia (green-blind)
#2A3A5B
Tritanopia (blue-blind)
#552D3D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #54255d;
/* rgb */ color: rgb(84, 37, 93);
/* oklch */ color: oklch(35.5% 0.107 321.0);
Tailwind
colors: {
  custom: {
    50: '#86628b',
    500: '#54255d',
    950: '#000000',
  },
}
SCSS
$custom: #54255d;
$custom-light: #86628b;
$custom-dark: #000000;
JSON
{
  "hex": "#54255d",
  "rgb": {
    "r": 84,
    "g": 37,
    "b": 93
  },
  "hsl": {
    "h": 290.357,
    "s": 43.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35516,
    "c": 0.10659,
    "h": 321
  },
  "luminance": 0.03998
}

Semantic roles & 50–950 ramp

primary
#54255D
secondary
#58904D
accent
#D35569
background
#F8F5F8
surface
#EFEAF0
border
#CAC6CB
text
#0B050C
muted
#7C797D

Preview Lab

Preview with #54255D

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

Preview Lab → · Contrast checker → · Palette generator →

#54255D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva