#54256C#54256C

#54256C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.5% C 0.124 H 312.4°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#54256C
RGBrgb(84, 37, 108)
HSLhsl(280, 49%, 28%)
HSVhsv(280, 66%, 42%)
CMYKcmyk(22.2%, 65.7%, 0%, 57.6%)
CIE-LABlab(24.61, 34.78, -32.45)
CIE-LCHlch(24.61, 47.56, 316.98°)
OKLaboklab(36.51% 0.0833 -0.0913)
OKLCHoklch(36.51% 0.124 312.4)
XYZxyz(7.0240, 4.2908, 14.6427)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54256C #3D6C25
analogous
#30256C #54256C #6C2560
triadic
#54256C #6C5425 #256C54
tetradic
#54256C #6C3025 #3D6C25 #25606C
square
#54256C #6C3025 #3D6C25 #25606C
split-complementary
#54256C #606C25 #256C30
monochromatic
#120817 #31153E #54256C #77359A #994AC1

Accessibility & contrast

On white

11.30
#54256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#54256C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54256C
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54256C#FFFFFF#000000##FFFFFF
##54256C1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07386E
Deuteranopia (green-blind)
#203B6A
Tritanopia (blue-blind)
#513245
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #54256c;
/* rgb */ color: rgb(84, 37, 108);
/* oklch */ color: oklch(36.5% 0.124 312.4);
Tailwind
colors: {
  custom: {
    50: '#876396',
    500: '#54256c',
    950: '#000000',
  },
}
SCSS
$custom: #54256c;
$custom-light: #876396;
$custom-dark: #000000;
JSON
{
  "hex": "#54256c",
  "rgb": {
    "r": 84,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 279.718,
    "s": 48.966,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36508,
    "c": 0.12357,
    "h": 312.4
  },
  "luminance": 0.04291
}

Semantic roles & 50–950 ramp

primary
#54256C
secondary
#699F4E
accent
#D94F7E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #54256C

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

Preview Lab → · Contrast checker → · Palette generator →

#54256C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva