#54249B#54249B

#54249B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.178 H 295.5°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#54249B
RGBrgb(84, 36, 155)
HSLhsl(264, 62%, 37%)
HSVhsv(264, 77%, 61%)
CMYKcmyk(45.8%, 76.8%, 0%, 39.2%)
CIE-LABlab(28.15, 47.32, -56.20)
CIE-LCHlch(28.15, 73.47, 310.10°)
OKLaboklab(40.19% 0.0768 -0.161)
OKLCHoklch(40.19% 0.178 295.5)
XYZxyz(10.2018, 5.5129, 31.5306)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54249B #6B9B24
analogous
#242F9B #54249B #90249B
triadic
#54249B #9B5424 #249B54
tetradic
#54249B #9B242F #6B9B24 #249B90
square
#54249B #9B242F #6B9B24 #249B90
split-complementary
#54249B #9B9024 #2F9B24
monochromatic
#1E0D38 #391869 #54249B #6F30CD #915FDA

Accessibility & contrast

On white

9.99
#54249B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#54249B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54249B
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54249B#FFFFFF#000000##FFFFFF
##54249B1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#40445E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #54249b;
/* rgb */ color: rgb(84, 36, 155);
/* oklch */ color: oklch(40.2% 0.178 295.5);
Tailwind
colors: {
  custom: {
    50: '#8b64b9',
    500: '#54249b',
    950: '#000000',
  },
}
SCSS
$custom: #54249b;
$custom-light: #8b64b9;
$custom-dark: #000000;
JSON
{
  "hex": "#54249b",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 155
  },
  "hsl": {
    "h": 264.202,
    "s": 62.304,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40194,
    "c": 0.1784,
    "h": 295.5
  },
  "luminance": 0.05513
}

Semantic roles & 50–950 ramp

primary
#54249B
secondary
#97BF5C
accent
#E542A4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54249B

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

Preview Lab → · Contrast checker → · Palette generator →

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