#54238A#54238A

#54238A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.161 H 300.7°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#54238A
RGBrgb(84, 35, 138)
HSLhsl(269, 60%, 34%)
HSVhsv(269, 75%, 54%)
CMYKcmyk(39.1%, 74.6%, 0%, 45.9%)
CIE-LABlab(26.51, 43.33, -48.39)
CIE-LCHlch(26.51, 64.96, 311.84°)
OKLaboklab(38.59% 0.0819 -0.1381)
OKLCHoklch(38.59% 0.161 300.7)
XYZxyz(8.8435, 4.9218, 24.5239)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54238A #598A23
analogous
#23258A #54238A #88238A
triadic
#54238A #8A5423 #238A54
tetradic
#54238A #8A2325 #598A23 #238A88
square
#54238A #8A2325 #598A23 #238A88
split-complementary
#54238A #8A8823 #258A23
monochromatic
#190A28 #361759 #54238A #722FBB #9154D4

Accessibility & contrast

On white

10.58
#54238A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#54238A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54238A
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54238A#FFFFFF#000000##FFFFFF
##54238A1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#483D54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #54238a;
/* rgb */ color: rgb(84, 35, 138);
/* oklch */ color: oklch(38.6% 0.161 300.7);
Tailwind
colors: {
  custom: {
    50: '#8963ad',
    500: '#54238a',
    950: '#000000',
  },
}
SCSS
$custom: #54238a;
$custom-light: #8963ad;
$custom-dark: #000000;
JSON
{
  "hex": "#54238a",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 138
  },
  "hsl": {
    "h": 268.544,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38585,
    "c": 0.16053,
    "h": 300.7
  },
  "luminance": 0.04922
}

Semantic roles & 50–950 ramp

primary
#54238A
secondary
#87B751
accent
#E34598
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #54238A

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

Preview Lab → · Contrast checker → · Palette generator →

#54238A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva