#54237D#54237D

#54237D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.146 H 305.3°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#54237D
RGBrgb(84, 35, 125)
HSLhsl(273, 56%, 31%)
HSVhsv(273, 72%, 49%)
CMYKcmyk(32.8%, 72%, 0%, 51%)
CIE-LABlab(25.47, 40.01, -41.93)
CIE-LCHlch(25.47, 57.96, 313.65°)
OKLaboklab(37.51% 0.0843 -0.1191)
OKLCHoklch(37.51% 0.146 305.3)
XYZxyz(7.9580, 4.5676, 19.8605)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54237D #4C7D23
analogous
#27237D #54237D #7D2379
triadic
#54237D #7D5423 #237D54
tetradic
#54237D #7D2723 #4C7D23 #23797D
square
#54237D #7D2723 #4C7D23 #23797D
split-complementary
#54237D #797D23 #237D27
monochromatic
#14081D #34164D #54237D #7430AD #934DCD

Accessibility & contrast

On white

10.97
#54237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54237D
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54237D#FFFFFF#000000##FFFFFF
##54237D1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#013C7B
Tritanopia (blue-blind)
#4D384D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54237d;
/* rgb */ color: rgb(84, 35, 125);
/* oklch */ color: oklch(37.5% 0.146 305.3);
Tailwind
colors: {
  custom: {
    50: '#8862a3',
    500: '#54237d',
    950: '#000000',
  },
}
SCSS
$custom: #54237d;
$custom-light: #8862a3;
$custom-dark: #000000;
JSON
{
  "hex": "#54237d",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 272.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37514,
    "c": 0.14589,
    "h": 305.3
  },
  "luminance": 0.04568
}

Semantic roles & 50–950 ramp

primary
#54237D
secondary
#79AF4C
accent
#E0488D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #54237D

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

Preview Lab → · Contrast checker → · Palette generator →

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