#54237C#54237C

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

Color values

HEX#54237C
RGBrgb(84, 35, 124)
HSLhsl(273, 56%, 31%)
HSVhsv(273, 72%, 49%)
CMYKcmyk(32.3%, 71.8%, 0%, 51.4%)
CIE-LABlab(25.39, 39.76, -41.42)
CIE-LCHlch(25.39, 57.42, 313.82°)
OKLaboklab(37.44% 0.0844 -0.1176)
OKLCHoklch(37.44% 0.145 305.7)
XYZxyz(7.8945, 4.5422, 19.5257)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54237C #4B7C23
analogous
#27237C #54237C #7C2377
triadic
#54237C #7C5423 #237C54
tetradic
#54237C #7C2723 #4B7C23 #23777C
square
#54237C #7C2723 #4B7C23 #23777C
split-complementary
#54237C #777C23 #237C27
monochromatic
#13081D #34164C #54237C #7430AC #934DCD

Accessibility & contrast

On white

11.00
#54237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#54237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54237C
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54237C#FFFFFF#000000##FFFFFF
##54237C1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#043C7A
Tritanopia (blue-blind)
#4D374D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54237c;
/* rgb */ color: rgb(84, 35, 124);
/* oklch */ color: oklch(37.4% 0.145 305.7);
Tailwind
colors: {
  custom: {
    50: '#8862a3',
    500: '#54237c',
    950: '#000000',
  },
}
SCSS
$custom: #54237c;
$custom-light: #8862a3;
$custom-dark: #000000;
JSON
{
  "hex": "#54237c",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 273.034,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37435,
    "c": 0.14476,
    "h": 305.7
  },
  "luminance": 0.04542
}

Semantic roles & 50–950 ramp

primary
#54237C
secondary
#78AF4C
accent
#DF498C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #54237C

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

Preview Lab → · Contrast checker → · Palette generator →

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