#54258D#54258D

#54258D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.162 H 299.4°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#54258D
RGBrgb(84, 37, 141)
HSLhsl(267, 58%, 35%)
HSVhsv(267, 74%, 55%)
CMYKcmyk(40.4%, 73.8%, 0%, 44.7%)
CIE-LABlab(27.10, 43.15, -49.29)
CIE-LCHlch(27.10, 65.50, 311.20°)
OKLaboklab(39.08% 0.0792 -0.1407)
OKLCHoklch(39.08% 0.162 299.4)
XYZxyz(9.1242, 5.1309, 25.7038)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54258D #5E8D25
analogous
#252A8D #54258D #88258D
triadic
#54258D #8D5425 #258D54
tetradic
#54258D #8D252A #5E8D25 #258D88
square
#54258D #8D252A #5E8D25 #258D88
split-complementary
#54258D #8D8825 #2A8D25
monochromatic
#1A0C2C #37185D #54258D #7132BD #9059D3

Accessibility & contrast

On white

10.36
#54258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#54258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54258D
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54258D#FFFFFF#000000##FFFFFF
##54258D1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#473F56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #54258d;
/* rgb */ color: rgb(84, 37, 141);
/* oklch */ color: oklch(39.1% 0.162 299.4);
Tailwind
colors: {
  custom: {
    50: '#8a64af',
    500: '#54258d',
    950: '#000000',
  },
}
SCSS
$custom: #54258d;
$custom-light: #8a64af;
$custom-dark: #000000;
JSON
{
  "hex": "#54258d",
  "rgb": {
    "r": 84,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 267.115,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39083,
    "c": 0.1615,
    "h": 299.4
  },
  "luminance": 0.05131
}

Semantic roles & 50–950 ramp

primary
#54258D
secondary
#8CB856
accent
#E2469B
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #54258D

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

Preview Lab → · Contrast checker → · Palette generator →

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