#54238F#54238F

#54238F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.166 H 299.1°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#54238F
RGBrgb(84, 35, 143)
HSLhsl(267, 61%, 35%)
HSVhsv(267, 76%, 56%)
CMYKcmyk(41.3%, 75.5%, 0%, 43.9%)
CIE-LABlab(26.93, 44.63, -50.81)
CIE-LCHlch(26.93, 67.63, 311.30°)
OKLaboklab(39.01% 0.0807 -0.1452)
OKLCHoklch(39.01% 0.166 299.1)
XYZxyz(9.2139, 5.0699, 26.4744)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54238F #5E8F23
analogous
#23288F #54238F #8A238F
triadic
#54238F #8F5423 #238F54
tetradic
#54238F #8F2328 #5E8F23 #238F8A
square
#54238F #8F2328 #5E8F23 #238F8A
split-complementary
#54238F #8F8A23 #288F23
monochromatic
#1A0B2D #37175E #54238F #712FC0 #9057D6

Accessibility & contrast

On white

10.43
#54238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#54238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54238F
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54238F#FFFFFF#000000##FFFFFF
##54238F1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#463F57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #54238f;
/* rgb */ color: rgb(84, 35, 143);
/* oklch */ color: oklch(39.0% 0.166 299.1);
Tailwind
colors: {
  custom: {
    50: '#8a63b1',
    500: '#54238f',
    950: '#000000',
  },
}
SCSS
$custom: #54238f;
$custom-light: #8a63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#54238f",
  "rgb": {
    "r": 84,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 267.222,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39014,
    "c": 0.16612,
    "h": 299.1
  },
  "luminance": 0.0507
}

Semantic roles & 50–950 ramp

primary
#54238F
secondary
#8CBA54
accent
#E4449B
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #54238F

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

Preview Lab → · Contrast checker → · Palette generator →

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