#54338E#54338E

#54338E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.1% C 0.144 H 296.2°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#54338E
RGBrgb(84, 51, 142)
HSLhsl(262, 47%, 38%)
HSVhsv(262, 64%, 56%)
CMYKcmyk(40.8%, 64.1%, 0%, 44.3%)
CIE-LABlab(29.92, 35.88, -45.33)
CIE-LCHlch(29.92, 57.81, 308.36°)
OKLaboklab(41.13% 0.0635 -0.1291)
OKLCHoklch(41.13% 0.144 296.2)
XYZxyz(9.7212, 6.2053, 26.2715)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54338E #6D8E33
analogous
#33408E #54338E #81338E
triadic
#54338E #8E5433 #338E54
tetradic
#54338E #8E3340 #6D8E33 #338E81
square
#54338E #8E3340 #6D8E33 #338E81
split-complementary
#54338E #8E8133 #408E33
monochromatic
#1F1334 #392361 #54338E #6F43BB #9170CC

Accessibility & contrast

On white

9.37
#54338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#54338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54338E
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54338E#FFFFFF#000000##FFFFFF
##54338E1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#46475B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #54338e;
/* rgb */ color: rgb(84, 51, 142);
/* oklch */ color: oklch(41.1% 0.144 296.2);
Tailwind
colors: {
  custom: {
    50: '#896cb0',
    500: '#54338e',
    950: '#000000',
  },
}
SCSS
$custom: #54338e;
$custom-light: #896cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#54338e",
  "rgb": {
    "r": 84,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 261.758,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.41131,
    "c": 0.14391,
    "h": 296.2
  },
  "luminance": 0.06205
}

Semantic roles & 50–950 ramp

primary
#54338E
secondary
#99B469
accent
#D751A6
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #54338E

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

Preview Lab → · Contrast checker → · Palette generator →

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