#54258B#54258B

#54258B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.159 H 300.0°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#54258B
RGBrgb(84, 37, 139)
HSLhsl(268, 58%, 35%)
HSVhsv(268, 73%, 55%)
CMYKcmyk(39.6%, 73.4%, 0%, 45.5%)
CIE-LABlab(26.94, 42.62, -48.32)
CIE-LCHlch(26.94, 64.43, 311.42°)
OKLaboklab(38.91% 0.0796 -0.1379)
OKLCHoklch(38.91% 0.159 300)
XYZxyz(8.9768, 5.0719, 24.9271)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54258B #5C8B25
analogous
#25298B #54258B #87258B
triadic
#54258B #8B5425 #258B54
tetradic
#54258B #8B2529 #5C8B25 #258B87
square
#54258B #8B2529 #5C8B25 #258B87
split-complementary
#54258B #8B8725 #298B25
monochromatic
#1A0B2A #37185B #54258B #7132BB #9058D3

Accessibility & contrast

On white

10.42
#54258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#54258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54258B
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54258B#FFFFFF#000000##FFFFFF
##54258B1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#473E55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #54258b;
/* rgb */ color: rgb(84, 37, 139);
/* oklch */ color: oklch(38.9% 0.159 300.0);
Tailwind
colors: {
  custom: {
    50: '#8964ae',
    500: '#54258b',
    950: '#000000',
  },
}
SCSS
$custom: #54258b;
$custom-light: #8964ae;
$custom-dark: #000000;
JSON
{
  "hex": "#54258b",
  "rgb": {
    "r": 84,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 267.647,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38914,
    "c": 0.15922,
    "h": 300
  },
  "luminance": 0.05072
}

Semantic roles & 50–950 ramp

primary
#54258B
secondary
#8AB755
accent
#E1479A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #54258B

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

Preview Lab → · Contrast checker → · Palette generator →

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