#54339F#54339F

#54339F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.5% C 0.165 H 291.9°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#54339F
RGBrgb(84, 51, 159)
HSLhsl(258, 51%, 41%)
HSVhsv(258, 68%, 62%)
CMYKcmyk(47.2%, 67.9%, 0%, 37.6%)
CIE-LABlab(31.24, 40.74, -53.58)
CIE-LCHlch(31.24, 67.31, 307.24°)
OKLaboklab(42.5% 0.0616 -0.1534)
OKLCHoklch(42.5% 0.165 291.9)
XYZxyz(11.0962, 6.7553, 33.5134)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54339F #7E9F33
analogous
#33489F #54339F #8A339F
triadic
#54339F #9F5433 #339F54
tetradic
#54339F #9F3348 #7E9F33 #339F8A
square
#54339F #9F3348 #7E9F33 #339F8A
split-complementary
#54339F #9F8A33 #489F33
monochromatic
#231542 #3C2471 #54339F #704AC5 #9479D4

Accessibility & contrast

On white

8.93
#54339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#54339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54339F
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54339F#FFFFFF#000000##FFFFFF
##54339F1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#3D4D64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #54339f;
/* rgb */ color: rgb(84, 51, 159);
/* oklch */ color: oklch(42.5% 0.165 291.9);
Tailwind
colors: {
  custom: {
    50: '#8b6dbc',
    500: '#54339f',
    950: '#000000',
  },
}
SCSS
$custom: #54339f;
$custom-light: #8b6dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#54339f",
  "rgb": {
    "r": 84,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 258.333,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42498,
    "c": 0.16531,
    "h": 291.9
  },
  "luminance": 0.06756
}

Semantic roles & 50–950 ramp

primary
#54339F
secondary
#A5BC71
accent
#DB4DB0
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #54339F

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

Preview Lab → · Contrast checker → · Palette generator →

#54339F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva