#8A5CDC#8A5CDC

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

Color values

HEX#8A5CDC
RGBrgb(138, 92, 220)
HSLhsl(262, 65%, 61%)
HSVhsv(262, 58%, 86%)
CMYKcmyk(37.3%, 58.2%, 0%, 13.7%)
CIE-LABlab(49.77, 46.11, -59.04)
CIE-LCHlch(49.77, 74.91, 307.99°)
OKLaboklab(58.65% 0.0846 -0.1677)
OKLCHoklch(58.65% 0.188 296.8)
XYZxyz(27.2234, 18.2244, 69.7797)
Luminance0.1822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CDC #AEDC5C
analogous
#5C6EDC #8A5CDC #CA5CDC
triadic
#8A5CDC #DC8A5C #5CDC8A
tetradic
#8A5CDC #DC5C6E #AEDC5C #5CDCCA
square
#8A5CDC #DC5C6E #AEDC5C #5CDCCA
split-complementary
#8A5CDC #DCCA5C #6EDC5C
monochromatic
#4E229C #672CCE #8A5CDC #AE8EE7 #D2C1F2

Accessibility & contrast

On white

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

On black

4.64
#8A5CDC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CDC
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CDC#FFFFFF#000000##000000
##8A5CDC1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F77E0
Deuteranopia (green-blind)
#2975D9
Tritanopia (blue-blind)
#777793
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5cdc;
/* rgb */ color: rgb(138, 92, 220);
/* oklch */ color: oklch(58.6% 0.188 296.8);
Tailwind
colors: {
  custom: {
    50: '#b18ce8',
    500: '#8a5cdc',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cdc;
$custom-light: #b18ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cdc",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 220
  },
  "hsl": {
    "h": 261.563,
    "s": 64.646,
    "l": 61.176
  },
  "oklch": {
    "l": 0.58648,
    "c": 0.18785,
    "h": 296.8
  },
  "luminance": 0.18225
}

Semantic roles & 50–950 ramp

primary
#8A5CDC
secondary
#D1E2B2
accent
#CC198C
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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