#54248B#54248B

#54248B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.160 H 300.2°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#54248B
RGBrgb(84, 36, 139)
HSLhsl(268, 59%, 34%)
HSVhsv(268, 74%, 55%)
CMYKcmyk(39.6%, 74.1%, 0%, 45.5%)
CIE-LABlab(26.76, 43.11, -48.60)
CIE-LCHlch(26.76, 64.96, 311.57°)
OKLaboklab(38.79% 0.0807 -0.1387)
OKLCHoklch(38.79% 0.16 300.2)
XYZxyz(8.9461, 5.0106, 24.9169)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54248B #5B8B24
analogous
#24288B #54248B #88248B
triadic
#54248B #8B5424 #248B54
tetradic
#54248B #8B2428 #5B8B24 #248B88
square
#54248B #8B2428 #5B8B24 #248B88
split-complementary
#54248B #8B8824 #288B24
monochromatic
#190B2A #37175A #54248B #7131BC #9056D3

Accessibility & contrast

On white

10.49
#54248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#54248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54248B
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54248B#FFFFFF#000000##FFFFFF
##54248B1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54248b;
/* rgb */ color: rgb(84, 36, 139);
/* oklch */ color: oklch(38.8% 0.160 300.2);
Tailwind
colors: {
  custom: {
    50: '#8963ae',
    500: '#54248b',
    950: '#000000',
  },
}
SCSS
$custom: #54248b;
$custom-light: #8963ae;
$custom-dark: #000000;
JSON
{
  "hex": "#54248b",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 267.961,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38791,
    "c": 0.16044,
    "h": 300.2
  },
  "luminance": 0.05011
}

Semantic roles & 50–950 ramp

primary
#54248B
secondary
#89B753
accent
#E24699
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #54248B

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

Preview Lab → · Contrast checker → · Palette generator →

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