#8A5DD9#8A5DD9

#8A5DD9 is a mid, vivid violet. Relative luminance 0.182; OKLCH L 58.6% C 0.183 H 297.2°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8A5DD9
RGBrgb(138, 93, 217)
HSLhsl(262, 62%, 61%)
HSVhsv(262, 57%, 85%)
CMYKcmyk(36.4%, 57.1%, 0%, 14.9%)
CIE-LABlab(49.79, 44.78, -57.31)
CIE-LCHlch(49.79, 72.73, 308.00°)
OKLaboklab(58.6% 0.0834 -0.1626)
OKLCHoklch(58.6% 0.183 297.2)
XYZxyz(26.9168, 18.2413, 67.7350)
Luminance0.1824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DD9 #ACD95D
analogous
#5D6ED9 #8A5DD9 #C85DD9
triadic
#8A5DD9 #D98A5D #5DD98A
tetradic
#8A5DD9 #D95D6E #ACD95D #5DD9C8
square
#8A5DD9 #D95D6E #ACD95D #5DD9C8
split-complementary
#8A5DD9 #D9C85D #6ED95D
monochromatic
#4E2498 #672FCA #8A5DD9 #AE8FE5 #D2C0F0

Accessibility & contrast

On white

4.52
#8A5DD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#8A5DD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DD9
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DD9#FFFFFF#000000##000000
##8A5DD91.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C77DD
Deuteranopia (green-blind)
#3075D6
Tritanopia (blue-blind)
#787792
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5dd9;
/* rgb */ color: rgb(138, 93, 217);
/* oklch */ color: oklch(58.6% 0.183 297.2);
Tailwind
colors: {
  custom: {
    50: '#b18ce5',
    500: '#8a5dd9',
    950: '#000000',
  },
}
SCSS
$custom: #8a5dd9;
$custom-light: #b18ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5dd9",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 217
  },
  "hsl": {
    "h": 261.774,
    "s": 62,
    "l": 60.784
  },
  "oklch": {
    "l": 0.58603,
    "c": 0.18278,
    "h": 297.2
  },
  "luminance": 0.18242
}

Semantic roles & 50–950 ramp

primary
#8A5DD9
secondary
#CFE0B1
accent
#CA1C8B
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5DD9

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

Preview Lab → · Contrast checker → · Palette generator →

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