#54288C#54288C

#54288C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.157 H 299.2°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#54288C
RGBrgb(84, 40, 140)
HSLhsl(266, 56%, 35%)
HSVhsv(266, 71%, 55%)
CMYKcmyk(40%, 71.4%, 0%, 45.1%)
CIE-LABlab(27.56, 41.37, -47.93)
CIE-LCHlch(27.56, 63.31, 310.80°)
OKLaboklab(39.38% 0.0763 -0.1367)
OKLCHoklch(39.38% 0.157 299.2)
XYZxyz(9.1474, 5.2957, 25.3461)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54288C #608C28
analogous
#282E8C #54288C #86288C
triadic
#54288C #8C5428 #288C54
tetradic
#54288C #8C282E #608C28 #288C86
square
#54288C #8C282E #608C28 #288C86
split-complementary
#54288C #8C8628 #2E8C28
monochromatic
#1B0D2D #371A5C #54288C #7136BC #905ED1

Accessibility & contrast

On white

10.20
#54288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#54288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54288C
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54288C#FFFFFF#000000##FFFFFF
##54288C1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#474057
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #54288c;
/* rgb */ color: rgb(84, 40, 140);
/* oklch */ color: oklch(39.4% 0.157 299.2);
Tailwind
colors: {
  custom: {
    50: '#8966ae',
    500: '#54288c',
    950: '#000000',
  },
}
SCSS
$custom: #54288c;
$custom-light: #8966ae;
$custom-dark: #000000;
JSON
{
  "hex": "#54288c",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 266.4,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39382,
    "c": 0.15658,
    "h": 299.2
  },
  "luminance": 0.05296
}

Semantic roles & 50–950 ramp

primary
#54288C
secondary
#8DB65A
accent
#DF499D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #54288C

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

Preview Lab → · Contrast checker → · Palette generator →

#54288C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva