#8A54CD#8A54CD

#8A54CD is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.4% C 0.181 H 301.4°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#8A54CD
RGBrgb(138, 84, 205)
HSLhsl(267, 55%, 57%)
HSVhsv(267, 59%, 80%)
CMYKcmyk(32.7%, 59%, 0%, 19.6%)
CIE-LABlab(47.17, 46.64, -54.65)
CIE-LCHlch(47.17, 71.85, 310.48°)
OKLaboklab(56.45% 0.0945 -0.1548)
OKLCHoklch(56.45% 0.181 301.4)
XYZxyz(24.6684, 16.1516, 59.5637)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54CD #97CD54
analogous
#545BCD #8A54CD #C754CD
triadic
#8A54CD #CD8A54 #54CD8A
tetradic
#8A54CD #CD545B #97CD54 #54CDC7
square
#8A54CD #CD545B #97CD54 #54CDC7
split-complementary
#8A54CD #CDC754 #5BCD54
monochromatic
#4E2681 #6B34B0 #8A54CD #AA83DB #CBB3E9

Accessibility & contrast

On white

4.96
#8A54CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#8A54CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54CD
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54CD#FFFFFF#000000##FFFFFF
##8A54CD1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#146FD1
Deuteranopia (green-blind)
#316FCA
Tritanopia (blue-blind)
#7C6D88
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a54cd;
/* rgb */ color: rgb(138, 84, 205);
/* oklch */ color: oklch(56.4% 0.181 301.4);
Tailwind
colors: {
  custom: {
    50: '#b086dd',
    500: '#8a54cd',
    950: '#000000',
  },
}
SCSS
$custom: #8a54cd;
$custom-light: #b086dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54cd",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 205
  },
  "hsl": {
    "h": 266.777,
    "s": 54.751,
    "l": 56.667
  },
  "oklch": {
    "l": 0.56446,
    "c": 0.18136,
    "h": 301.4
  },
  "luminance": 0.16152
}

Semantic roles & 50–950 ramp

primary
#8A54CD
secondary
#C1D7A6
accent
#DE4A9C
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A54CD

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

Preview Lab → · Contrast checker → · Palette generator →

#8A54CD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva