#54258E#54258E

#54258E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.163 H 299.1°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#54258E
RGBrgb(84, 37, 142)
HSLhsl(267, 59%, 35%)
HSVhsv(267, 74%, 56%)
CMYKcmyk(40.8%, 73.9%, 0%, 44.3%)
CIE-LABlab(27.19, 43.41, -49.77)
CIE-LCHlch(27.19, 66.04, 311.09°)
OKLaboklab(39.17% 0.079 -0.1421)
OKLCHoklch(39.17% 0.163 299.1)
XYZxyz(9.1990, 5.1608, 26.0974)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54258E #5F8E25
analogous
#252B8E #54258E #88258E
triadic
#54258E #8E5425 #258E54
tetradic
#54258E #8E252B #5F8E25 #258E88
square
#54258E #8E252B #5F8E25 #258E88
split-complementary
#54258E #8E8825 #2B8E25
monochromatic
#1B0C2D #37185D #54258E #7132BF #905AD4

Accessibility & contrast

On white

10.33
#54258E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#54258E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54258E
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54258E#FFFFFF#000000##FFFFFF
##54258E1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.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: #54258e;
/* rgb */ color: rgb(84, 37, 142);
/* oklch */ color: oklch(39.2% 0.163 299.1);
Tailwind
colors: {
  custom: {
    50: '#8a64b0',
    500: '#54258e',
    950: '#000000',
  },
}
SCSS
$custom: #54258e;
$custom-light: #8a64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#54258e",
  "rgb": {
    "r": 84,
    "g": 37,
    "b": 142
  },
  "hsl": {
    "h": 266.857,
    "s": 58.659,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39168,
    "c": 0.16263,
    "h": 299.1
  },
  "luminance": 0.05161
}

Semantic roles & 50–950 ramp

primary
#54258E
secondary
#8DB956
accent
#E2469C
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #54258E

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

Preview Lab → · Contrast checker → · Palette generator →

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