#54267D#54267D

#54267D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.142 H 304.7°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#54267D
RGBrgb(84, 38, 125)
HSLhsl(272, 53%, 32%)
HSVhsv(272, 70%, 49%)
CMYKcmyk(32.8%, 69.6%, 0%, 51%)
CIE-LABlab(26.02, 38.48, -41.04)
CIE-LCHlch(26.02, 56.26, 313.15°)
OKLaboklab(37.91% 0.0808 -0.1165)
OKLCHoklch(37.91% 0.142 304.7)
XYZxyz(8.0501, 4.7518, 19.8911)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54267D #4F7D26
analogous
#29267D #54267D #7D267B
triadic
#54267D #7D5426 #267D54
tetradic
#54267D #7D2926 #4F7D26 #267B7D
square
#54267D #7D2926 #4F7D26 #267B7D
split-complementary
#54267D #7B7D26 #267D29
monochromatic
#15091F #34184E #54267D #7434AC #9253CB

Accessibility & contrast

On white

10.77
#54267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#54267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54267D
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54267D#FFFFFF#000000##FFFFFF
##54267D1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C80
Deuteranopia (green-blind)
#083E7B
Tritanopia (blue-blind)
#4C394E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #54267d;
/* rgb */ color: rgb(84, 38, 125);
/* oklch */ color: oklch(37.9% 0.142 304.7);
Tailwind
colors: {
  custom: {
    50: '#8864a3',
    500: '#54267d',
    950: '#000000',
  },
}
SCSS
$custom: #54267d;
$custom-light: #8864a3;
$custom-dark: #000000;
JSON
{
  "hex": "#54267d",
  "rgb": {
    "r": 84,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 271.724,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37908,
    "c": 0.14177,
    "h": 304.7
  },
  "luminance": 0.04752
}

Semantic roles & 50–950 ramp

primary
#54267D
secondary
#7DAF50
accent
#DD4B90
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #54267D

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

Preview Lab → · Contrast checker → · Palette generator →

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