#54237B#54237B

#54237B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.144 H 306.1°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#54237B
RGBrgb(84, 35, 123)
HSLhsl(273, 56%, 31%)
HSVhsv(273, 72%, 48%)
CMYKcmyk(31.7%, 71.5%, 0%, 51.8%)
CIE-LABlab(25.31, 39.51, -40.91)
CIE-LCHlch(25.31, 56.87, 314.00°)
OKLaboklab(37.36% 0.0846 -0.1161)
OKLCHoklch(37.36% 0.144 306.1)
XYZxyz(7.8316, 4.5170, 19.1943)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54237B #4A7B23
analogous
#28237B #54237B #7B2376
triadic
#54237B #7B5423 #237B54
tetradic
#54237B #7B2823 #4A7B23 #23767B
square
#54237B #7B2823 #4A7B23 #23767B
split-complementary
#54237B #767B23 #237B28
monochromatic
#13081C #33154B #54237B #7531AB #934CCC

Accessibility & contrast

On white

11.03
#54237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54237B
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54237B#FFFFFF#000000##FFFFFF
##54237B1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#063C79
Tritanopia (blue-blind)
#4D374C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54237b;
/* rgb */ color: rgb(84, 35, 123);
/* oklch */ color: oklch(37.4% 0.144 306.1);
Tailwind
colors: {
  custom: {
    50: '#8862a2',
    500: '#54237b',
    950: '#000000',
  },
}
SCSS
$custom: #54237b;
$custom-light: #8862a2;
$custom-dark: #000000;
JSON
{
  "hex": "#54237b",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 273.409,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37356,
    "c": 0.14363,
    "h": 306.1
  },
  "luminance": 0.04517
}

Semantic roles & 50–950 ramp

primary
#54237B
secondary
#77AE4C
accent
#DF498B
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #54237B

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

Preview Lab → · Contrast checker → · Palette generator →

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