#54267F#54267F

#54267F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.144 H 304.0°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#54267F
RGBrgb(84, 38, 127)
HSLhsl(271, 54%, 32%)
HSVhsv(271, 70%, 50%)
CMYKcmyk(33.9%, 70.1%, 0%, 50.2%)
CIE-LABlab(26.17, 38.99, -42.06)
CIE-LCHlch(26.17, 57.35, 312.83°)
OKLaboklab(38.06% 0.0805 -0.1195)
OKLCHoklch(38.06% 0.144 304)
XYZxyz(8.1792, 4.8034, 20.5708)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54267F #517F26
analogous
#28267F #54267F #7F267E
triadic
#54267F #7F5426 #267F54
tetradic
#54267F #7F2826 #517F26 #267E7F
square
#54267F #7F2826 #517F26 #267E7F
split-complementary
#54267F #7E7F26 #267F28
monochromatic
#160A21 #351850 #54267F #7334AE #9254CC

Accessibility & contrast

On white

10.71
#54267F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#54267F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54267F
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54267F#FFFFFF#000000##FFFFFF
##54267F1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#033E7D
Tritanopia (blue-blind)
#4C3A4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #54267f;
/* rgb */ color: rgb(84, 38, 127);
/* oklch */ color: oklch(38.1% 0.144 304.0);
Tailwind
colors: {
  custom: {
    50: '#8864a5',
    500: '#54267f',
    950: '#000000',
  },
}
SCSS
$custom: #54267f;
$custom-light: #8864a5;
$custom-dark: #000000;
JSON
{
  "hex": "#54267f",
  "rgb": {
    "r": 84,
    "g": 38,
    "b": 127
  },
  "hsl": {
    "h": 271.011,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38064,
    "c": 0.14409,
    "h": 304
  },
  "luminance": 0.04803
}

Semantic roles & 50–950 ramp

primary
#54267F
secondary
#7FB051
accent
#DD4A91
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #54267F

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

Preview Lab → · Contrast checker → · Palette generator →

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