#54238B#54238B

#54238B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.162 H 300.3°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#54238B
RGBrgb(84, 35, 139)
HSLhsl(268, 60%, 34%)
HSVhsv(268, 75%, 55%)
CMYKcmyk(39.6%, 74.8%, 0%, 45.5%)
CIE-LABlab(26.59, 43.59, -48.88)
CIE-LCHlch(26.59, 65.49, 311.73°)
OKLaboklab(38.67% 0.0817 -0.1395)
OKLCHoklch(38.67% 0.162 300.3)
XYZxyz(8.9162, 4.9509, 24.9070)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54238B #5A8B23
analogous
#23268B #54238B #88238B
triadic
#54238B #8B5423 #238B54
tetradic
#54238B #8B2326 #5A8B23 #238B88
square
#54238B #8B2326 #5A8B23 #238B88
split-complementary
#54238B #8B8823 #268B23
monochromatic
#190A29 #36175A #54238B #722FBC #9154D4

Accessibility & contrast

On white

10.55
#54238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#54238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54238B
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54238B#FFFFFF#000000##FFFFFF
##54238B1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#473D55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #54238b;
/* rgb */ color: rgb(84, 35, 139);
/* oklch */ color: oklch(38.7% 0.162 300.3);
Tailwind
colors: {
  custom: {
    50: '#8963ae',
    500: '#54238b',
    950: '#000000',
  },
}
SCSS
$custom: #54238b;
$custom-light: #8963ae;
$custom-dark: #000000;
JSON
{
  "hex": "#54238b",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 268.269,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3867,
    "c": 0.16165,
    "h": 300.3
  },
  "luminance": 0.04951
}

Semantic roles & 50–950 ramp

primary
#54238B
secondary
#88B852
accent
#E34598
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #54238B

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

Preview Lab → · Contrast checker → · Palette generator →

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