#54258F#54258F

#54258F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.164 H 298.8°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#54258F
RGBrgb(84, 37, 143)
HSLhsl(267, 59%, 35%)
HSVhsv(267, 74%, 56%)
CMYKcmyk(41.3%, 74.1%, 0%, 43.9%)
CIE-LABlab(27.27, 43.67, -50.25)
CIE-LCHlch(27.27, 66.58, 310.99°)
OKLaboklab(39.25% 0.0788 -0.1436)
OKLCHoklch(39.25% 0.164 298.8)
XYZxyz(9.2744, 5.1910, 26.4946)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54258F #608F25
analogous
#252B8F #54258F #89258F
triadic
#54258F #8F5425 #258F54
tetradic
#54258F #8F252B #608F25 #258F89
square
#54258F #8F252B #608F25 #258F89
split-complementary
#54258F #8F8925 #2B8F25
monochromatic
#1B0C2E #37185E #54258F #7132C0 #905AD4

Accessibility & contrast

On white

10.30
#54258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#54258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54258F
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54258F#FFFFFF#000000##FFFFFF
##54258F1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54258f;
/* rgb */ color: rgb(84, 37, 143);
/* oklch */ color: oklch(39.3% 0.164 298.8);
Tailwind
colors: {
  custom: {
    50: '#8a64b1',
    500: '#54258f',
    950: '#000000',
  },
}
SCSS
$custom: #54258f;
$custom-light: #8a64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#54258f",
  "rgb": {
    "r": 84,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 266.604,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39254,
    "c": 0.16377,
    "h": 298.8
  },
  "luminance": 0.05191
}

Semantic roles & 50–950 ramp

primary
#54258F
secondary
#8DB957
accent
#E2469D
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #54258F

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

Preview Lab → · Contrast checker → · Palette generator →

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