#54138F#54138F

#54138F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.5% C 0.181 H 301.0°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#54138F
RGBrgb(84, 19, 143)
HSLhsl(271, 77%, 32%)
HSVhsv(271, 87%, 56%)
CMYKcmyk(41.3%, 86.7%, 0%, 43.9%)
CIE-LABlab(24.75, 50.96, -54.39)
CIE-LCHlch(24.75, 74.53, 313.14°)
OKLaboklab(37.49% 0.0935 -0.1556)
OKLCHoklch(37.49% 0.181 301)
XYZxyz(8.8457, 4.3337, 26.3517)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54138F #4E8F13
analogous
#16138F #54138F #8F138C
triadic
#54138F #8F5413 #138F54
tetradic
#54138F #8F1613 #4E8F13 #138C8F
square
#54138F #8F1613 #4E8F13 #138C8F
split-complementary
#54138F #8C8F13 #138F16
monochromatic
#150523 #340C59 #54138F #741AC5 #9238E5

Accessibility & contrast

On white

11.25
#54138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#54138F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54138F
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54138F#FFFFFF#000000##FFFFFF
##54138F1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54138f;
/* rgb */ color: rgb(84, 19, 143);
/* oklch */ color: oklch(37.5% 0.181 301.0);
Tailwind
colors: {
  custom: {
    50: '#8b5cb1',
    500: '#54138f',
    950: '#000000',
  },
}
SCSS
$custom: #54138f;
$custom-light: #8b5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#54138f",
  "rgb": {
    "r": 84,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 271.452,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3749,
    "c": 0.18148,
    "h": 301
  },
  "luminance": 0.04334
}

Semantic roles & 50–950 ramp

primary
#54138F
secondary
#7CC33B
accent
#F3358F
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0411
muted
#7E7980

Preview Lab

Preview with #54138F

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

Preview Lab → · Contrast checker → · Palette generator →

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