#54337B#54337B

#54337B is a dark, moderate violet. Relative luminance 0.057; OKLCH L 39.7% C 0.119 H 302.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#54337B
RGBrgb(84, 51, 123)
HSLhsl(268, 41%, 34%)
HSVhsv(268, 59%, 48%)
CMYKcmyk(31.7%, 58.5%, 0%, 51.8%)
CIE-LABlab(28.60, 30.61, -35.63)
CIE-LCHlch(28.60, 46.97, 310.67°)
OKLaboklab(39.74% 0.064 -0.1006)
OKLCHoklch(39.74% 0.119 302.5)
XYZxyz(8.4143, 5.6825, 19.3886)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54337B #5A7B33
analogous
#33367B #54337B #78337B
triadic
#54337B #7B5433 #337B54
tetradic
#54337B #7B3336 #5A7B33 #337B78
square
#54337B #7B3336 #5A7B33 #337B78
split-complementary
#54337B #7B7833 #367B33
monochromatic
#190F24 #362150 #54337B #7245A6 #9168C0

Accessibility & contrast

On white

9.83
#54337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#54337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54337B
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54337B#FFFFFF#000000##FFFFFF
##54337B1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16437D
Deuteranopia (green-blind)
#224379
Tritanopia (blue-blind)
#4D4152
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #54337b;
/* rgb */ color: rgb(84, 51, 123);
/* oklch */ color: oklch(39.7% 0.119 302.5);
Tailwind
colors: {
  custom: {
    50: '#876ca2',
    500: '#54337b',
    950: '#000000',
  },
}
SCSS
$custom: #54337b;
$custom-light: #876ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#54337b",
  "rgb": {
    "r": 84,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 267.5,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39738,
    "c": 0.11927,
    "h": 302.5
  },
  "luminance": 0.05683
}

Semantic roles & 50–950 ramp

primary
#54337B
secondary
#88A862
accent
#D15799
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #54337B

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

Preview Lab → · Contrast checker → · Palette generator →

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