#54237E#54237E

#54237E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.147 H 304.9°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#54237E
RGBrgb(84, 35, 126)
HSLhsl(272, 57%, 32%)
HSVhsv(272, 72%, 49%)
CMYKcmyk(33.3%, 72.2%, 0%, 50.6%)
CIE-LABlab(25.54, 40.26, -42.44)
CIE-LCHlch(25.54, 58.50, 313.49°)
OKLaboklab(37.59% 0.0841 -0.1206)
OKLCHoklch(37.59% 0.147 304.9)
XYZxyz(8.0222, 4.5933, 20.1986)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54237E #4D7E23
analogous
#27237E #54237E #7E237B
triadic
#54237E #7E5423 #237E54
tetradic
#54237E #7E2723 #4D7E23 #237B7E
square
#54237E #7E2723 #4D7E23 #237B7E
split-complementary
#54237E #7B7E23 #237E27
monochromatic
#14081E #34164E #54237E #7430AE #934ECE

Accessibility & contrast

On white

10.95
#54237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#54237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54237E
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54237E#FFFFFF#000000##FFFFFF
##54237E1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#003D7C
Tritanopia (blue-blind)
#4C384E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #54237e;
/* rgb */ color: rgb(84, 35, 126);
/* oklch */ color: oklch(37.6% 0.147 304.9);
Tailwind
colors: {
  custom: {
    50: '#8862a4',
    500: '#54237e',
    950: '#000000',
  },
}
SCSS
$custom: #54237e;
$custom-light: #8862a4;
$custom-dark: #000000;
JSON
{
  "hex": "#54237e",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 272.308,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37594,
    "c": 0.14703,
    "h": 304.9
  },
  "luminance": 0.04593
}

Semantic roles & 50–950 ramp

primary
#54237E
secondary
#7BB04C
accent
#E0488E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #54237E

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

Preview Lab → · Contrast checker → · Palette generator →

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