#54397B#54397B

#54397B is a dark, moderate violet. Relative luminance 0.062; OKLCH L 40.8% C 0.109 H 300.5°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#54397B
RGBrgb(84, 57, 123)
HSLhsl(265, 37%, 35%)
HSVhsv(265, 54%, 48%)
CMYKcmyk(31.7%, 53.7%, 0%, 51.8%)
CIE-LABlab(30.01, 26.95, -33.37)
CIE-LCHlch(30.01, 42.89, 308.93°)
OKLaboklab(40.78% 0.0555 -0.094)
OKLCHoklch(40.78% 0.109 300.5)
XYZxyz(8.6936, 6.2411, 19.4817)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54397B #607B39
analogous
#393F7B #54397B #75397B
triadic
#54397B #7B5439 #397B54
tetradic
#54397B #7B393F #607B39 #397B75
square
#54397B #7B393F #607B39 #397B75
split-complementary
#54397B #7B7539 #3F7B39
monochromatic
#1B1227 #372651 #54397B #714CA5 #9071BD

Accessibility & contrast

On white

9.34
#54397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#54397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54397B
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54397B#FFFFFF#000000##FFFFFF
##54397B1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22467D
Deuteranopia (green-blind)
#294679
Tritanopia (blue-blind)
#4C4554
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #54397b;
/* rgb */ color: rgb(84, 57, 123);
/* oklch */ color: oklch(40.8% 0.109 300.5);
Tailwind
colors: {
  custom: {
    50: '#8670a1',
    500: '#54397b',
    950: '#000000',
  },
}
SCSS
$custom: #54397b;
$custom-light: #8670a1;
$custom-dark: #000000;
JSON
{
  "hex": "#54397b",
  "rgb": {
    "r": 84,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 264.545,
    "s": 36.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40783,
    "c": 0.10917,
    "h": 300.5
  },
  "luminance": 0.06241
}

Semantic roles & 50–950 ramp

primary
#54397B
secondary
#8DA669
accent
#CD5B9E
background
#F8F6FA
surface
#F0ECF3
border
#CBC7CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #54397B

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

Preview Lab → · Contrast checker → · Palette generator →

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