#54239F#54239F

#54239F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.184 H 294.6°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#54239F
RGBrgb(84, 35, 159)
HSLhsl(264, 64%, 38%)
HSVhsv(264, 78%, 62%)
CMYKcmyk(47.2%, 78%, 0%, 37.6%)
CIE-LABlab(28.35, 48.84, -58.30)
CIE-LCHlch(28.35, 76.06, 309.95°)
OKLaboklab(40.45% 0.0765 -0.1672)
OKLCHoklch(40.45% 0.184 294.6)
XYZxyz(10.5135, 5.5898, 33.3192)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54239F #6E9F23
analogous
#23309F #54239F #92239F
triadic
#54239F #9F5423 #239F54
tetradic
#54239F #9F2330 #6E9F23 #239F92
square
#54239F #9F2330 #6E9F23 #239F92
split-complementary
#54239F #9F9223 #309F23
monochromatic
#1F0D3B #3A186D #54239F #6F2ED1 #9160DC

Accessibility & contrast

On white

9.92
#54239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#54239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54239F
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54239F#FFFFFF#000000##FFFFFF
##54239F1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#3E4560
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #54239f;
/* rgb */ color: rgb(84, 35, 159);
/* oklch */ color: oklch(40.4% 0.184 294.6);
Tailwind
colors: {
  custom: {
    50: '#8c64bc',
    500: '#54239f',
    950: '#000000',
  },
}
SCSS
$custom: #54239f;
$custom-light: #8c64bc;
$custom-dark: #000000;
JSON
{
  "hex": "#54239f",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 263.71,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40449,
    "c": 0.18387,
    "h": 294.6
  },
  "luminance": 0.0559
}

Semantic roles & 50–950 ramp

primary
#54239F
secondary
#99C15D
accent
#E741A5
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54239F

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

Preview Lab → · Contrast checker → · Palette generator →

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