#54258C#54258C

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

Color values

HEX#54258C
RGBrgb(84, 37, 140)
HSLhsl(267, 58%, 35%)
HSVhsv(267, 74%, 55%)
CMYKcmyk(40%, 73.6%, 0%, 45.1%)
CIE-LABlab(27.02, 42.88, -48.80)
CIE-LCHlch(27.02, 64.97, 311.31°)
OKLaboklab(39% 0.0794 -0.1393)
OKLCHoklch(39% 0.16 299.7)
XYZxyz(9.0502, 5.1013, 25.3137)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54258C #5D8C25
analogous
#25298C #54258C #88258C
triadic
#54258C #8C5425 #258C54
tetradic
#54258C #8C2529 #5D8C25 #258C88
square
#54258C #8C2529 #5D8C25 #258C88
split-complementary
#54258C #8C8825 #298C25
monochromatic
#1A0B2B #37185C #54258C #7132BC #9058D3

Accessibility & contrast

On white

10.40
#54258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#54258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54258C
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54258C#FFFFFF#000000##FFFFFF
##54258C1.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)
#00408F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#473F56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #54258c;
/* rgb */ color: rgb(84, 37, 140);
/* oklch */ color: oklch(39.0% 0.160 299.7);
Tailwind
colors: {
  custom: {
    50: '#8964ae',
    500: '#54258c',
    950: '#000000',
  },
}
SCSS
$custom: #54258c;
$custom-light: #8964ae;
$custom-dark: #000000;
JSON
{
  "hex": "#54258c",
  "rgb": {
    "r": 84,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 267.379,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38998,
    "c": 0.16036,
    "h": 299.7
  },
  "luminance": 0.05101
}

Semantic roles & 50–950 ramp

primary
#54258C
secondary
#8BB855
accent
#E1469B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #54258C

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

Preview Lab → · Contrast checker → · Palette generator →

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