#54248D#54248D

#54248D is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.163 H 299.5°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#54248D
RGBrgb(84, 36, 141)
HSLhsl(267, 59%, 35%)
HSVhsv(267, 74%, 55%)
CMYKcmyk(40.4%, 74.5%, 0%, 44.7%)
CIE-LABlab(26.93, 43.63, -49.57)
CIE-LCHlch(26.93, 66.04, 311.35°)
OKLaboklab(38.96% 0.0802 -0.1415)
OKLCHoklch(38.96% 0.163 299.5)
XYZxyz(9.0935, 5.0696, 25.6936)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54248D #5D8D24
analogous
#24288D #54248D #89248D
triadic
#54248D #8D5424 #248D54
tetradic
#54248D #8D2428 #5D8D24 #248D89
square
#54248D #8D2428 #5D8D24 #248D89
split-complementary
#54248D #8D8924 #288D24
monochromatic
#1A0B2B #37185C #54248D #7130BE #9057D4

Accessibility & contrast

On white

10.43
#54248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#54248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54248D
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54248D#FFFFFF#000000##FFFFFF
##54248D1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54248d;
/* rgb */ color: rgb(84, 36, 141);
/* oklch */ color: oklch(39.0% 0.163 299.5);
Tailwind
colors: {
  custom: {
    50: '#8a63af',
    500: '#54248d',
    950: '#000000',
  },
}
SCSS
$custom: #54248d;
$custom-light: #8a63af;
$custom-dark: #000000;
JSON
{
  "hex": "#54248d",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 267.429,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38961,
    "c": 0.1627,
    "h": 299.5
  },
  "luminance": 0.0507
}

Semantic roles & 50–950 ramp

primary
#54248D
secondary
#8BB854
accent
#E3459B
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #54248D

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

Preview Lab → · Contrast checker → · Palette generator →

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