#8A5DDF#8A5DDF

#8A5DDF is a mid, vivid violet. Relative luminance 0.186; OKLCH L 59.0% C 0.190 H 296.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8A5DDF
RGBrgb(138, 93, 223)
HSLhsl(261, 67%, 62%)
HSVhsv(261, 58%, 87%)
CMYKcmyk(38.1%, 58.3%, 0%, 12.5%)
CIE-LABlab(50.17, 46.34, -60.10)
CIE-LCHlch(50.17, 75.89, 307.64°)
OKLaboklab(59% 0.0834 -0.1708)
OKLCHoklch(59% 0.19 296)
XYZxyz(27.7114, 18.5592, 71.9200)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DDF #B2DF5D
analogous
#5D71DF #8A5DDF #CB5DDF
triadic
#8A5DDF #DF8A5D #5DDF8A
tetradic
#8A5DDF #DF5D71 #B2DF5D #5DDFCB
square
#8A5DDF #DF5D71 #B2DF5D #5DDFCB
split-complementary
#8A5DDF #DFCB5D #71DF5D
monochromatic
#4D20A2 #652AD5 #8A5DDF #AF90E9 #D4C3F3

Accessibility & contrast

On white

4.46
#8A5DDF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#8A5DDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5DDF
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DDF#FFFFFF#000000##000000
##8A5DDF1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0978E3
Deuteranopia (green-blind)
#2676DC
Tritanopia (blue-blind)
#757995
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #8a5ddf;
/* rgb */ color: rgb(138, 93, 223);
/* oklch */ color: oklch(59.0% 0.190 296.0);
Tailwind
colors: {
  custom: {
    50: '#b18dea',
    500: '#8a5ddf',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ddf;
$custom-light: #b18dea;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ddf",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 223
  },
  "hsl": {
    "h": 260.769,
    "s": 67.01,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59003,
    "c": 0.19009,
    "h": 296
  },
  "luminance": 0.1856
}

Semantic roles & 50–950 ramp

primary
#8A5DDF
secondary
#D3E4B4
accent
#CF178F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5DDF

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

Preview Lab → · Contrast checker → · Palette generator →

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