#54308B#54308B

#54308B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.4% C 0.144 H 297.8°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#54308B
RGBrgb(84, 48, 139)
HSLhsl(264, 49%, 37%)
HSVhsv(264, 65%, 55%)
CMYKcmyk(39.6%, 65.5%, 0%, 45.5%)
CIE-LABlab(29.06, 36.76, -44.87)
CIE-LCHlch(29.06, 58.00, 309.32°)
OKLaboklab(40.44% 0.0673 -0.1278)
OKLCHoklch(40.44% 0.144 297.8)
XYZxyz(9.3721, 5.8627, 25.0589)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54308B #678B30
analogous
#303A8B #54308B #82308B
triadic
#54308B #8B5430 #308B54
tetradic
#54308B #8B303A #678B30 #308B82
square
#54308B #8B303A #678B30 #308B82
split-complementary
#54308B #8B8230 #3A8B30
monochromatic
#1D1130 #39205E #54308B #6F40B8 #916ACC

Accessibility & contrast

On white

9.67
#54308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#54308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54308B
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54308B#FFFFFF#000000##FFFFFF
##54308B1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#474559
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #54308b;
/* rgb */ color: rgb(84, 48, 139);
/* oklch */ color: oklch(40.4% 0.144 297.8);
Tailwind
colors: {
  custom: {
    50: '#896aae',
    500: '#54308b',
    950: '#000000',
  },
}
SCSS
$custom: #54308b;
$custom-light: #896aae;
$custom-dark: #000000;
JSON
{
  "hex": "#54308b",
  "rgb": {
    "r": 84,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 263.736,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40436,
    "c": 0.14444,
    "h": 297.8
  },
  "luminance": 0.05863
}

Semantic roles & 50–950 ramp

primary
#54308B
secondary
#94B364
accent
#D850A2
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #54308B

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

Preview Lab → · Contrast checker → · Palette generator →

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