#54187F#54187F

#54187F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.161 H 306.1°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#54187F
RGBrgb(84, 24, 127)
HSLhsl(275, 68%, 30%)
HSVhsv(275, 81%, 50%)
CMYKcmyk(33.9%, 81.1%, 0%, 50.2%)
CIE-LABlab(23.90, 45.40, -45.73)
CIE-LCHlch(23.90, 64.44, 314.79°)
OKLaboklab(36.46% 0.0949 -0.1302)
OKLCHoklch(36.46% 0.161 306.1)
XYZxyz(7.8127, 4.0705, 20.4487)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54187F #437F18
analogous
#20187F #54187F #7F1877
triadic
#54187F #7F5418 #187F54
tetradic
#54187F #7F2018 #437F18 #18777F
square
#54187F #7F2018 #437F18 #18777F
split-complementary
#54187F #777F18 #187F20
monochromatic
#11051A #320E4C #54187F #7622B2 #9638D9

Accessibility & contrast

On white

11.58
#54187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#54187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54187F
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54187F#FFFFFF#000000##FFFFFF
##54187F1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#4C334B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #54187f;
/* rgb */ color: rgb(84, 24, 127);
/* oklch */ color: oklch(36.5% 0.161 306.1);
Tailwind
colors: {
  custom: {
    50: '#895da5',
    500: '#54187f',
    950: '#000000',
  },
}
SCSS
$custom: #54187f;
$custom-light: #895da5;
$custom-dark: #000000;
JSON
{
  "hex": "#54187f",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 274.951,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36461,
    "c": 0.1611,
    "h": 306.1
  },
  "luminance": 0.0407
}

Semantic roles & 50–950 ramp

primary
#54187F
secondary
#70B33F
accent
#EB3D86
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54187F

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

Preview Lab → · Contrast checker → · Palette generator →

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