#54248F#54248F

#54248F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.165 H 298.9°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#54248F
RGBrgb(84, 36, 143)
HSLhsl(267, 60%, 35%)
HSVhsv(267, 75%, 56%)
CMYKcmyk(41.3%, 74.8%, 0%, 43.9%)
CIE-LABlab(27.10, 44.16, -50.53)
CIE-LCHlch(27.10, 67.11, 311.15°)
OKLaboklab(39.13% 0.0798 -0.1444)
OKLCHoklch(39.13% 0.165 298.9)
XYZxyz(9.2437, 5.1296, 26.4844)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54248F #5F8F24
analogous
#24298F #54248F #8A248F
triadic
#54248F #8F5424 #248F54
tetradic
#54248F #8F2429 #5F8F24 #248F8A
square
#54248F #8F2429 #5F8F24 #248F8A
split-complementary
#54248F #8F8A24 #298F24
monochromatic
#1B0B2D #37185E #54248F #7130C0 #9058D5

Accessibility & contrast

On white

10.37
#54248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#54248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54248F
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54248F#FFFFFF#000000##FFFFFF
##54248F1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#463F57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #54248f;
/* rgb */ color: rgb(84, 36, 143);
/* oklch */ color: oklch(39.1% 0.165 298.9);
Tailwind
colors: {
  custom: {
    50: '#8a64b1',
    500: '#54248f',
    950: '#000000',
  },
}
SCSS
$custom: #54248f;
$custom-light: #8a64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#54248f",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 266.916,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39133,
    "c": 0.16496,
    "h": 298.9
  },
  "luminance": 0.0513
}

Semantic roles & 50–950 ramp

primary
#54248F
secondary
#8DB955
accent
#E3459C
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #54248F

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

Preview Lab → · Contrast checker → · Palette generator →

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