#54337D#54337D

#54337D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 39.9% C 0.122 H 301.7°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#54337D
RGBrgb(84, 51, 125)
HSLhsl(267, 42%, 35%)
HSVhsv(267, 59%, 49%)
CMYKcmyk(32.8%, 59.2%, 0%, 51%)
CIE-LABlab(28.73, 31.16, -36.67)
CIE-LCHlch(28.73, 48.12, 310.35°)
OKLaboklab(39.88% 0.064 -0.1037)
OKLCHoklch(39.88% 0.122 301.7)
XYZxyz(8.5408, 5.7331, 20.0547)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54337D #5C7D33
analogous
#33377D #54337D #79337D
triadic
#54337D #7D5433 #337D54
tetradic
#54337D #7D3337 #5C7D33 #337D79
square
#54337D #7D3337 #5C7D33 #337D79
split-complementary
#54337D #7D7933 #377D33
monochromatic
#1A1026 #372152 #54337D #7145A8 #9069C2

Accessibility & contrast

On white

9.78
#54337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#54337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54337D
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54337D#FFFFFF#000000##FFFFFF
##54337D1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13437F
Deuteranopia (green-blind)
#20437B
Tritanopia (blue-blind)
#4C4253
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #54337d;
/* rgb */ color: rgb(84, 51, 125);
/* oklch */ color: oklch(39.9% 0.122 301.7);
Tailwind
colors: {
  custom: {
    50: '#876ca3',
    500: '#54337d',
    950: '#000000',
  },
}
SCSS
$custom: #54337d;
$custom-light: #876ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#54337d",
  "rgb": {
    "r": 84,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 266.757,
    "s": 42.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39877,
    "c": 0.12188,
    "h": 301.7
  },
  "luminance": 0.05733
}

Semantic roles & 50–950 ramp

primary
#54337D
secondary
#8AAA62
accent
#D2569B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #54337D

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

Preview Lab → · Contrast checker → · Palette generator →

#54337D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva