#54238D#54238D

#54238D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.164 H 299.7°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#54238D
RGBrgb(84, 35, 141)
HSLhsl(268, 60%, 35%)
HSVhsv(268, 75%, 55%)
CMYKcmyk(40.4%, 75.2%, 0%, 44.7%)
CIE-LABlab(26.76, 44.11, -49.85)
CIE-LCHlch(26.76, 66.56, 311.51°)
OKLaboklab(38.84% 0.0812 -0.1424)
OKLCHoklch(38.84% 0.164 299.7)
XYZxyz(9.0637, 5.0099, 25.6836)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54238D #5C8D23
analogous
#23278D #54238D #89238D
triadic
#54238D #8D5423 #238D54
tetradic
#54238D #8D2327 #5C8D23 #238D89
square
#54238D #8D2327 #5C8D23 #238D89
split-complementary
#54238D #8D8923 #278D23
monochromatic
#1A0B2B #37175C #54238D #712FBE #9055D5

Accessibility & contrast

On white

10.49
#54238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#54238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54238D
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54238D#FFFFFF#000000##FFFFFF
##54238D1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003E8B
Tritanopia (blue-blind)
#473E56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #54238d;
/* rgb */ color: rgb(84, 35, 141);
/* oklch */ color: oklch(38.8% 0.164 299.7);
Tailwind
colors: {
  custom: {
    50: '#8a63af',
    500: '#54238d',
    950: '#000000',
  },
}
SCSS
$custom: #54238d;
$custom-light: #8a63af;
$custom-dark: #000000;
JSON
{
  "hex": "#54238d",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 267.736,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38841,
    "c": 0.16389,
    "h": 299.7
  },
  "luminance": 0.0501
}

Semantic roles & 50–950 ramp

primary
#54238D
secondary
#8AB953
accent
#E3449A
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #54238D

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

Preview Lab → · Contrast checker → · Palette generator →

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