#54237A#54237A

#54237A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.142 H 306.5°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#54237A
RGBrgb(84, 35, 122)
HSLhsl(274, 55%, 31%)
HSVhsv(274, 71%, 48%)
CMYKcmyk(31.1%, 71.3%, 0%, 52.2%)
CIE-LABlab(25.24, 39.26, -40.40)
CIE-LCHlch(25.24, 56.33, 314.17°)
OKLaboklab(37.28% 0.0847 -0.1146)
OKLCHoklch(37.28% 0.143 306.5)
XYZxyz(7.7693, 4.4921, 18.8663)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54237A #497A23
analogous
#28237A #54237A #7A2374
triadic
#54237A #7A5423 #237A54
tetradic
#54237A #7A2823 #497A23 #23747A
square
#54237A #7A2823 #497A23 #23747A
split-complementary
#54237A #747A23 #237A28
monochromatic
#13081B #33154A #54237A #7531AA #944CCC

Accessibility & contrast

On white

11.06
#54237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#54237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54237A
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54237A#FFFFFF#000000##FFFFFF
##54237A1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#093C78
Tritanopia (blue-blind)
#4E364B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54237a;
/* rgb */ color: rgb(84, 35, 122);
/* oklch */ color: oklch(37.3% 0.142 306.5);
Tailwind
colors: {
  custom: {
    50: '#8862a1',
    500: '#54237a',
    950: '#000000',
  },
}
SCSS
$custom: #54237a;
$custom-light: #8862a1;
$custom-dark: #000000;
JSON
{
  "hex": "#54237a",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 273.793,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37278,
    "c": 0.1425,
    "h": 306.5
  },
  "luminance": 0.04492
}

Semantic roles & 50–950 ramp

primary
#54237A
secondary
#76AD4C
accent
#DF498A
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #54237A

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

Preview Lab → · Contrast checker → · Palette generator →

#54237A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva