#8A5CDA#8A5CDA

#8A5CDA is a mid, vivid violet. Relative luminance 0.181; OKLCH L 58.5% C 0.185 H 297.2°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#8A5CDA
RGBrgb(138, 92, 218)
HSLhsl(262, 63%, 61%)
HSVhsv(262, 58%, 85%)
CMYKcmyk(36.7%, 57.8%, 0%, 14.5%)
CIE-LABlab(49.64, 45.59, -58.11)
CIE-LCHlch(49.64, 73.86, 308.12°)
OKLaboklab(58.51% 0.0846 -0.165)
OKLCHoklch(58.51% 0.185 297.2)
XYZxyz(26.9601, 18.1191, 68.3930)
Luminance0.1812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CDA #ACDA5C
analogous
#5C6DDA #8A5CDA #C95CDA
triadic
#8A5CDA #DA8A5C #5CDA8A
tetradic
#8A5CDA #DA5C6D #ACDA5C #5CDAC9
square
#8A5CDA #DA5C6D #ACDA5C #5CDAC9
split-complementary
#8A5CDA #DAC95C #6DDA5C
monochromatic
#4E2399 #672ECB #8A5CDA #AE8EE5 #D2C0F1

Accessibility & contrast

On white

4.54
#8A5CDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#8A5CDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CDA
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CDA#FFFFFF#000000##000000
##8A5CDA1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1576DE
Deuteranopia (green-blind)
#2C75D7
Tritanopia (blue-blind)
#777792
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5cda;
/* rgb */ color: rgb(138, 92, 218);
/* oklch */ color: oklch(58.5% 0.185 297.2);
Tailwind
colors: {
  custom: {
    50: '#b18ce6',
    500: '#8a5cda',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cda;
$custom-light: #b18ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cda",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 218
  },
  "hsl": {
    "h": 261.905,
    "s": 63,
    "l": 60.784
  },
  "oklch": {
    "l": 0.58515,
    "c": 0.18542,
    "h": 297.2
  },
  "luminance": 0.1812
}

Semantic roles & 50–950 ramp

primary
#8A5CDA
secondary
#CFE1B1
accent
#CB1B8A
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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