#8A54CB#8A54CB

#8A54CB is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.3% C 0.179 H 301.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A54CB
RGBrgb(138, 84, 203)
HSLhsl(267, 53%, 56%)
HSVhsv(267, 59%, 80%)
CMYKcmyk(32%, 58.6%, 0%, 20.4%)
CIE-LABlab(47.05, 46.14, -53.70)
CIE-LCHlch(47.05, 70.80, 310.67°)
OKLaboklab(56.32% 0.0945 -0.152)
OKLCHoklch(56.32% 0.179 301.9)
XYZxyz(24.4285, 16.0557, 58.3004)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54CB #95CB54
analogous
#545ACB #8A54CB #C654CB
triadic
#8A54CB #CB8A54 #54CB8A
tetradic
#8A54CB #CB545A #95CB54 #54CBC6
square
#8A54CB #CB545A #95CB54 #54CBC6
split-complementary
#8A54CB #CBC654 #5ACB54
monochromatic
#4E267E #6B35AD #8A54CB #AA83D9 #CAB2E8

Accessibility & contrast

On white

4.99
#8A54CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#8A54CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54CB
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54CB#FFFFFF#000000##FFFFFF
##8A54CB1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196FCF
Deuteranopia (green-blind)
#336FC8
Tritanopia (blue-blind)
#7D6C87
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a54cb;
/* rgb */ color: rgb(138, 84, 203);
/* oklch */ color: oklch(56.3% 0.179 301.9);
Tailwind
colors: {
  custom: {
    50: '#b086db',
    500: '#8a54cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a54cb;
$custom-light: #b086db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54cb",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 267.227,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56315,
    "c": 0.179,
    "h": 301.9
  },
  "luminance": 0.16056
}

Semantic roles & 50–950 ramp

primary
#8A54CB
secondary
#C0D6A5
accent
#DD4B9B
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A54CB

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

Preview Lab → · Contrast checker → · Palette generator →

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