#54309E#54309E

#54309E is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.168 H 292.7°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#54309E
RGBrgb(84, 48, 158)
HSLhsl(260, 53%, 40%)
HSVhsv(260, 70%, 62%)
CMYKcmyk(46.8%, 69.6%, 0%, 38%)
CIE-LABlab(30.56, 42.10, -54.09)
CIE-LCHlch(30.56, 68.54, 307.90°)
OKLaboklab(41.98% 0.0648 -0.1549)
OKLCHoklch(41.98% 0.168 292.7)
XYZxyz(10.8830, 6.4670, 33.0160)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54309E #7A9E30
analogous
#30439E #54309E #8B309E
triadic
#54309E #9E5430 #309E54
tetradic
#54309E #9E3043 #7A9E30 #309E8B
square
#54309E #9E3043 #7A9E30 #309E8B
split-complementary
#54309E #9E8B30 #439E30
monochromatic
#221340 #3B226F #54309E #6F45C6 #9374D5

Accessibility & contrast

On white

9.16
#54309E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#54309E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54309E
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54309E#FFFFFF#000000##FFFFFF
##54309E1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00469C
Tritanopia (blue-blind)
#3E4B63
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #54309e;
/* rgb */ color: rgb(84, 48, 158);
/* oklch */ color: oklch(42.0% 0.168 292.7);
Tailwind
colors: {
  custom: {
    50: '#8b6bbc',
    500: '#54309e',
    950: '#000000',
  },
}
SCSS
$custom: #54309e;
$custom-light: #8b6bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#54309e",
  "rgb": {
    "r": 84,
    "g": 48,
    "b": 158
  },
  "hsl": {
    "h": 259.636,
    "s": 53.398,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41984,
    "c": 0.1679,
    "h": 292.7
  },
  "luminance": 0.06467
}

Semantic roles & 50–950 ramp

primary
#54309E
secondary
#A3BD6D
accent
#DD4BAD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #54309E

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

Preview Lab → · Contrast checker → · Palette generator →

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