#54348E#54348E

#54348E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.3% C 0.142 H 295.9°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#54348E
RGBrgb(84, 52, 142)
HSLhsl(261, 46%, 38%)
HSVhsv(261, 63%, 56%)
CMYKcmyk(40.8%, 63.4%, 0%, 44.3%)
CIE-LABlab(30.14, 35.30, -44.98)
CIE-LCHlch(30.14, 57.17, 308.12°)
OKLaboklab(41.29% 0.0623 -0.1281)
OKLCHoklch(41.29% 0.142 295.9)
XYZxyz(9.7654, 6.2936, 26.2862)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54348E #6E8E34
analogous
#34418E #54348E #81348E
triadic
#54348E #8E5434 #348E54
tetradic
#54348E #8E3441 #6E8E34 #348E81
square
#54348E #8E3441 #6E8E34 #348E81
split-complementary
#54348E #8E8134 #418E34
monochromatic
#1F1334 #3A2461 #54348E #6F44BB #9171CB

Accessibility & contrast

On white

9.30
#54348E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#54348E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54348E
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54348E#FFFFFF#000000##FFFFFF
##54348E1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#01468C
Tritanopia (blue-blind)
#45485C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #54348e;
/* rgb */ color: rgb(84, 52, 142);
/* oklch */ color: oklch(41.3% 0.142 295.9);
Tailwind
colors: {
  custom: {
    50: '#896db0',
    500: '#54348e',
    950: '#000000',
  },
}
SCSS
$custom: #54348e;
$custom-light: #896db0;
$custom-dark: #000000;
JSON
{
  "hex": "#54348e",
  "rgb": {
    "r": 84,
    "g": 52,
    "b": 142
  },
  "hsl": {
    "h": 261.333,
    "s": 46.392,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41289,
    "c": 0.14245,
    "h": 295.9
  },
  "luminance": 0.06294
}

Semantic roles & 50–950 ramp

primary
#54348E
secondary
#99B36A
accent
#D652A7
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #54348E

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

Preview Lab → · Contrast checker → · Palette generator →

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