#54309B#54309B

#54309B is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.7% C 0.164 H 293.4°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#54309B
RGBrgb(84, 48, 155)
HSLhsl(260, 53%, 40%)
HSVhsv(260, 69%, 61%)
CMYKcmyk(45.8%, 69%, 0%, 39.2%)
CIE-LABlab(30.32, 41.25, -52.66)
CIE-LCHlch(30.32, 66.89, 308.07°)
OKLaboklab(41.73% 0.0653 -0.1507)
OKLCHoklch(41.73% 0.164 293.4)
XYZxyz(10.6279, 6.3650, 31.6726)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54309B #779B30
analogous
#30429B #54309B #8A309B
triadic
#54309B #9B5430 #309B54
tetradic
#54309B #9B3042 #779B30 #309B8A
square
#54309B #9B3042 #779B30 #309B8A
split-complementary
#54309B #9B8A30 #429B30
monochromatic
#21133E #3B226C #54309B #6F43C5 #9372D3

Accessibility & contrast

On white

9.24
#54309B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#54309B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54309B
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54309B#FFFFFF#000000##FFFFFF
##54309B1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#3F4A61
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #54309b;
/* rgb */ color: rgb(84, 48, 155);
/* oklch */ color: oklch(41.7% 0.164 293.4);
Tailwind
colors: {
  custom: {
    50: '#8a6bb9',
    500: '#54309b',
    950: '#000000',
  },
}
SCSS
$custom: #54309b;
$custom-light: #8a6bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#54309b",
  "rgb": {
    "r": 84,
    "g": 48,
    "b": 155
  },
  "hsl": {
    "h": 260.187,
    "s": 52.709,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41731,
    "c": 0.16424,
    "h": 293.4
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#54309B
secondary
#A0BB6C
accent
#DC4CAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #54309B

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

Preview Lab → · Contrast checker → · Palette generator →

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