#54298B#54298B

#54298B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.154 H 299.3°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#54298B
RGBrgb(84, 41, 139)
HSLhsl(266, 54%, 35%)
HSVhsv(266, 71%, 55%)
CMYKcmyk(39.6%, 70.5%, 0%, 45.5%)
CIE-LABlab(27.67, 40.58, -47.13)
CIE-LCHlch(27.67, 62.20, 310.73°)
OKLaboklab(39.43% 0.0754 -0.1344)
OKLCHoklch(39.43% 0.154 299.3)
XYZxyz(9.1081, 5.3347, 24.9709)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54298B #608B29
analogous
#292F8B #54298B #85298B
triadic
#54298B #8B5429 #298B54
tetradic
#54298B #8B292F #608B29 #298B85
square
#54298B #8B292F #608B29 #298B85
split-complementary
#54298B #8B8529 #2F8B29
monochromatic
#1B0D2C #371B5C #54298B #7137BA #905FD0

Accessibility & contrast

On white

10.16
#54298B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#54298B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54298B
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54298B#FFFFFF#000000##FFFFFF
##54298B1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#474057
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #54298b;
/* rgb */ color: rgb(84, 41, 139);
/* oklch */ color: oklch(39.4% 0.154 299.3);
Tailwind
colors: {
  custom: {
    50: '#8966ae',
    500: '#54298b',
    950: '#000000',
  },
}
SCSS
$custom: #54298b;
$custom-light: #8966ae;
$custom-dark: #000000;
JSON
{
  "hex": "#54298b",
  "rgb": {
    "r": 84,
    "g": 41,
    "b": 139
  },
  "hsl": {
    "h": 266.327,
    "s": 54.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39433,
    "c": 0.1541,
    "h": 299.3
  },
  "luminance": 0.05335
}

Semantic roles & 50–950 ramp

primary
#54298B
secondary
#8DB55B
accent
#DE4A9D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #54298B

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

Preview Lab → · Contrast checker → · Palette generator →

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