#54239D#54239D

#54239D is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.182 H 295.1°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#54239D
RGBrgb(84, 35, 157)
HSLhsl(264, 64%, 38%)
HSVhsv(264, 78%, 62%)
CMYKcmyk(46.5%, 77.7%, 0%, 38.4%)
CIE-LABlab(28.17, 48.31, -57.39)
CIE-LCHlch(28.17, 75.01, 310.09°)
OKLaboklab(40.27% 0.0771 -0.1645)
OKLCHoklch(40.27% 0.182 295.1)
XYZxyz(10.3413, 5.5209, 32.4125)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54239D #6C9D23
analogous
#232F9D #54239D #91239D
triadic
#54239D #9D5423 #239D54
tetradic
#54239D #9D232F #6C9D23 #239D91
square
#54239D #9D232F #6C9D23 #239D91
split-complementary
#54239D #9D9123 #2F9D23
monochromatic
#1E0D39 #39186B #54239D #6F2ECF #915FDB

Accessibility & contrast

On white

9.98
#54239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#54239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54239D
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54239D#FFFFFF#000000##FFFFFF
##54239D1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#3F445F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #54239d;
/* rgb */ color: rgb(84, 35, 157);
/* oklch */ color: oklch(40.3% 0.182 295.1);
Tailwind
colors: {
  custom: {
    50: '#8c64bb',
    500: '#54239d',
    950: '#000000',
  },
}
SCSS
$custom: #54239d;
$custom-light: #8c64bb;
$custom-dark: #000000;
JSON
{
  "hex": "#54239d",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 264.098,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40265,
    "c": 0.18166,
    "h": 295.1
  },
  "luminance": 0.05521
}

Semantic roles & 50–950 ramp

primary
#54239D
secondary
#98C05C
accent
#E741A4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54239D

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

Preview Lab → · Contrast checker → · Palette generator →

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