#54248E#54248E

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

Color values

HEX#54248E
RGBrgb(84, 36, 142)
HSLhsl(267, 60%, 35%)
HSVhsv(267, 75%, 56%)
CMYKcmyk(40.8%, 74.6%, 0%, 44.3%)
CIE-LABlab(27.02, 43.89, -50.05)
CIE-LCHlch(27.02, 66.57, 311.25°)
OKLaboklab(39.05% 0.08 -0.143)
OKLCHoklch(39.05% 0.164 299.2)
XYZxyz(9.1683, 5.0995, 26.0872)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54248E #5E8E24
analogous
#24298E #54248E #89248E
triadic
#54248E #8E5424 #248E54
tetradic
#54248E #8E2429 #5E8E24 #248E89
square
#54248E #8E2429 #5E8E24 #248E89
split-complementary
#54248E #8E8924 #298E24
monochromatic
#1A0B2C #37185D #54248E #7130BF #9058D5

Accessibility & contrast

On white

10.40
#54248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#54248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54248E
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54248E#FFFFFF#000000##FFFFFF
##54248E1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54248e;
/* rgb */ color: rgb(84, 36, 142);
/* oklch */ color: oklch(39.0% 0.164 299.2);
Tailwind
colors: {
  custom: {
    50: '#8a63b0',
    500: '#54248e',
    950: '#000000',
  },
}
SCSS
$custom: #54248e;
$custom-light: #8a63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#54248e",
  "rgb": {
    "r": 84,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 267.17,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39047,
    "c": 0.16383,
    "h": 299.2
  },
  "luminance": 0.051
}

Semantic roles & 50–950 ramp

primary
#54248E
secondary
#8CB955
accent
#E3459B
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #54248E

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

Preview Lab → · Contrast checker → · Palette generator →

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