#8A4DD9#8A4DD9

#8A4DD9 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.3% C 0.205 H 299.8°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8A4DD9
RGBrgb(138, 77, 217)
HSLhsl(266, 65%, 58%)
HSVhsv(266, 65%, 85%)
CMYKcmyk(36.4%, 64.5%, 0%, 14.9%)
CIE-LABlab(46.61, 53.29, -62.44)
CIE-LCHlch(46.61, 82.08, 310.48°)
OKLaboklab(56.29% 0.1019 -0.1777)
OKLCHoklch(56.29% 0.205 299.8)
XYZxyz(25.6564, 15.7205, 67.3149)
Luminance0.1572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DD9 #9CD94D
analogous
#4D56D9 #8A4DD9 #D04DD9
triadic
#8A4DD9 #D98A4D #4DD98A
tetradic
#8A4DD9 #D94D56 #9CD94D #4DD9D0
square
#8A4DD9 #D94D56 #9CD94D #4DD9D0
split-complementary
#8A4DD9 #D9D04D #56D94D
monochromatic
#4F1E8D #6B29C0 #8A4DD9 #AB7FE4 #CCB2EF

Accessibility & contrast

On white

5.07
#8A4DD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#8A4DD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DD9
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DD9#FFFFFF#000000##FFFFFF
##8A4DD91.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDD
Deuteranopia (green-blind)
#006DD6
Tritanopia (blue-blind)
#786D8C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4dd9;
/* rgb */ color: rgb(138, 77, 217);
/* oklch */ color: oklch(56.3% 0.205 299.8);
Tailwind
colors: {
  custom: {
    50: '#b182e6',
    500: '#8a4dd9',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dd9;
$custom-light: #b182e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dd9",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 217
  },
  "hsl": {
    "h": 266.143,
    "s": 64.815,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56287,
    "c": 0.20482,
    "h": 299.8
  },
  "luminance": 0.15721
}

Semantic roles & 50–950 ramp

primary
#8A4DD9
secondary
#C5DDA5
accent
#E8409F
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4DD9

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

Preview Lab → · Contrast checker → · Palette generator →

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