#54239C#54239C

#54239C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.181 H 295.4°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#54239C
RGBrgb(84, 35, 156)
HSLhsl(264, 63%, 37%)
HSVhsv(264, 78%, 61%)
CMYKcmyk(46.2%, 77.6%, 0%, 38.8%)
CIE-LABlab(28.08, 48.05, -56.92)
CIE-LCHlch(28.08, 74.49, 310.17°)
OKLaboklab(40.17% 0.0774 -0.1631)
OKLCHoklch(40.17% 0.181 295.4)
XYZxyz(10.2563, 5.4869, 31.9647)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54239C #6B9C23
analogous
#232E9C #54239C #91239C
triadic
#54239C #9C5423 #239C54
tetradic
#54239C #9C232E #6B9C23 #239C91
square
#54239C #9C232E #6B9C23 #239C91
split-complementary
#54239C #9C9123 #2E9C23
monochromatic
#1E0D38 #39186A #54239C #6F2ECE #915EDB

Accessibility & contrast

On white

10.01
#54239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54239C
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54239C#FFFFFF#000000##FFFFFF
##54239C1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54239c;
/* rgb */ color: rgb(84, 35, 156);
/* oklch */ color: oklch(40.2% 0.181 295.4);
Tailwind
colors: {
  custom: {
    50: '#8b64ba',
    500: '#54239c',
    950: '#000000',
  },
}
SCSS
$custom: #54239c;
$custom-light: #8b64ba;
$custom-dark: #000000;
JSON
{
  "hex": "#54239c",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 264.298,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40173,
    "c": 0.18056,
    "h": 295.4
  },
  "luminance": 0.05487
}

Semantic roles & 50–950 ramp

primary
#54239C
secondary
#97C05B
accent
#E641A4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54239C

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

Preview Lab → · Contrast checker → · Palette generator →

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