#54158F#54158F

#54158F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.180 H 300.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#54158F
RGBrgb(84, 21, 143)
HSLhsl(271, 74%, 32%)
HSVhsv(271, 85%, 56%)
CMYKcmyk(41.3%, 85.3%, 0%, 43.9%)
CIE-LABlab(24.97, 50.31, -54.03)
CIE-LCHlch(24.97, 73.83, 312.96°)
OKLaboklab(37.64% 0.0922 -0.1545)
OKLCHoklch(37.64% 0.18 300.8)
XYZxyz(8.8810, 4.4042, 26.3635)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54158F #508F15
analogous
#17158F #54158F #8F158D
triadic
#54158F #8F5415 #158F54
tetradic
#54158F #8F1715 #508F15 #158D8F
square
#54158F #8F1715 #508F15 #158D8F
split-complementary
#54158F #8D8F15 #158F17
monochromatic
#150524 #350D5A #54158F #731DC4 #923CE2

Accessibility & contrast

On white

11.17
#54158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#54158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54158F
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54158F#FFFFFF#000000##FFFFFF
##54158F1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#463954
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54158f;
/* rgb */ color: rgb(84, 21, 143);
/* oklch */ color: oklch(37.6% 0.180 300.8);
Tailwind
colors: {
  custom: {
    50: '#8b5db1',
    500: '#54158f',
    950: '#000000',
  },
}
SCSS
$custom: #54158f;
$custom-light: #8b5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#54158f",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 270.984,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37641,
    "c": 0.17993,
    "h": 300.8
  },
  "luminance": 0.04404
}

Semantic roles & 50–950 ramp

primary
#54158F
secondary
#7EC23E
accent
#F13791
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #54158F

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

Preview Lab → · Contrast checker → · Palette generator →

#54158F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva