#8A54DE#8A54DE

#8A54DE is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.6% C 0.201 H 297.8°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#8A54DE
RGBrgb(138, 84, 222)
HSLhsl(263, 68%, 60%)
HSVhsv(263, 62%, 87%)
CMYKcmyk(37.8%, 62.2%, 0%, 12.9%)
CIE-LABlab(48.28, 50.93, -62.57)
CIE-LCHlch(48.28, 80.68, 309.14°)
OKLaboklab(57.61% 0.0937 -0.1781)
OKLCHoklch(57.61% 0.201 297.8)
XYZxyz(26.8330, 17.0175, 70.9641)
Luminance0.1702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A54DE #A8DE54
analogous
#5463DE #8A54DE #CF54DE
triadic
#8A54DE #DE8A54 #54DE8A
tetradic
#8A54DE #DE5463 #A8DE54 #54DECF
square
#8A54DE #DE5463 #A8DE54 #54DECF
split-complementary
#8A54DE #DECF54 #63DE54
monochromatic
#4E1E9A #6828CD #8A54DE #AD87E8 #D0BBF2

Accessibility & contrast

On white

4.77
#8A54DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#8A54DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A54DE
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A54DE#FFFFFF#000000##FFFFFF
##8A54DE1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E2
Deuteranopia (green-blind)
#0A71DB
Tritanopia (blue-blind)
#767391
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a54de;
/* rgb */ color: rgb(138, 84, 222);
/* oklch */ color: oklch(57.6% 0.201 297.8);
Tailwind
colors: {
  custom: {
    50: '#b287e9',
    500: '#8a54de',
    950: '#000000',
  },
}
SCSS
$custom: #8a54de;
$custom-light: #b287e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a54de",
  "rgb": {
    "r": 138,
    "g": 84,
    "b": 222
  },
  "hsl": {
    "h": 263.478,
    "s": 67.647,
    "l": 60
  },
  "oklch": {
    "l": 0.57607,
    "c": 0.20125,
    "h": 297.8
  },
  "luminance": 0.17018
}

Semantic roles & 50–950 ramp

primary
#8A54DE
secondary
#CDE1AC
accent
#EB3DA7
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A54DE

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

Preview Lab → · Contrast checker → · Palette generator →

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