#54239B#54239B

#54239B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.179 H 295.6°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#54239B
RGBrgb(84, 35, 155)
HSLhsl(265, 63%, 37%)
HSVhsv(265, 77%, 61%)
CMYKcmyk(45.8%, 77.4%, 0%, 39.2%)
CIE-LABlab(27.99, 47.78, -56.46)
CIE-LCHlch(27.99, 73.97, 310.24°)
OKLaboklab(40.08% 0.0777 -0.1618)
OKLCHoklch(40.08% 0.179 295.6)
XYZxyz(10.1720, 5.4532, 31.5206)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54239B #6A9B23
analogous
#232E9B #54239B #90239B
triadic
#54239B #9B5423 #239B54
tetradic
#54239B #9B232E #6A9B23 #239B90
square
#54239B #9B232E #6A9B23 #239B90
split-complementary
#54239B #9B9023 #2E9B23
monochromatic
#1E0C37 #391869 #54239B #6F2ECD #915EDB

Accessibility & contrast

On white

10.04
#54239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#54239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54239B
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54239B#FFFFFF#000000##FFFFFF
##54239B1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#40445E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #54239b;
/* rgb */ color: rgb(84, 35, 155);
/* oklch */ color: oklch(40.1% 0.179 295.6);
Tailwind
colors: {
  custom: {
    50: '#8b64b9',
    500: '#54239b',
    950: '#000000',
  },
}
SCSS
$custom: #54239b;
$custom-light: #8b64b9;
$custom-dark: #000000;
JSON
{
  "hex": "#54239b",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 264.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40082,
    "c": 0.17945,
    "h": 295.6
  },
  "luminance": 0.05453
}

Semantic roles & 50–950 ramp

primary
#54239B
secondary
#96BF5A
accent
#E642A3
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54239B

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

Preview Lab → · Contrast checker → · Palette generator →

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