#54309D#54309D

#54309D is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.167 H 292.9°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#54309D
RGBrgb(84, 48, 157)
HSLhsl(260, 53%, 40%)
HSVhsv(260, 69%, 62%)
CMYKcmyk(46.5%, 69.4%, 0%, 38.4%)
CIE-LABlab(30.48, 41.82, -53.61)
CIE-LCHlch(30.48, 67.99, 307.95°)
OKLaboklab(41.9% 0.065 -0.1535)
OKLCHoklch(41.9% 0.167 292.9)
XYZxyz(10.7972, 6.4327, 32.5645)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54309D #799D30
analogous
#30429D #54309D #8B309D
triadic
#54309D #9D5430 #309D54
tetradic
#54309D #9D3042 #799D30 #309D8B
square
#54309D #9D3042 #799D30 #309D8B
split-complementary
#54309D #9D8B30 #429D30
monochromatic
#22133F #3B226E #54309D #6F44C6 #9373D4

Accessibility & contrast

On white

9.18
#54309D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54309D
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54309D#FFFFFF#000000##FFFFFF
##54309D1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#00469B
Tritanopia (blue-blind)
#3E4B62
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #54309d;
/* rgb */ color: rgb(84, 48, 157);
/* oklch */ color: oklch(41.9% 0.167 292.9);
Tailwind
colors: {
  custom: {
    50: '#8b6bbb',
    500: '#54309d',
    950: '#000000',
  },
}
SCSS
$custom: #54309d;
$custom-light: #8b6bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#54309d",
  "rgb": {
    "r": 84,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 259.817,
    "s": 53.171,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41899,
    "c": 0.16668,
    "h": 292.9
  },
  "luminance": 0.06433
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #54309D

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

Preview Lab → · Contrast checker → · Palette generator →

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