#8A5CDB#8A5CDB

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

Color values

HEX#8A5CDB
RGBrgb(138, 92, 219)
HSLhsl(262, 64%, 61%)
HSVhsv(262, 58%, 86%)
CMYKcmyk(37%, 58%, 0%, 14.1%)
CIE-LABlab(49.70, 45.85, -58.58)
CIE-LCHlch(49.70, 74.39, 308.05°)
OKLaboklab(58.58% 0.0846 -0.1664)
OKLCHoklch(58.58% 0.187 297)
XYZxyz(27.0913, 18.1716, 69.0842)
Luminance0.1817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CDB #ADDB5C
analogous
#5C6DDB #8A5CDB #C95CDB
triadic
#8A5CDB #DB8A5C #5CDB8A
tetradic
#8A5CDB #DB5C6D #ADDB5C #5CDBC9
square
#8A5CDB #DB5C6D #ADDB5C #5CDBC9
split-complementary
#8A5CDB #DBC95C #6DDB5C
monochromatic
#4E229A #672DCD #8A5CDB #AE8EE6 #D2C0F1

Accessibility & contrast

On white

4.53
#8A5CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#8A5CDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CDB
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CDB#FFFFFF#000000##000000
##8A5CDB1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1277DF
Deuteranopia (green-blind)
#2B75D8
Tritanopia (blue-blind)
#777793
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5cdb;
/* rgb */ color: rgb(138, 92, 219);
/* oklch */ color: oklch(58.6% 0.187 297.0);
Tailwind
colors: {
  custom: {
    50: '#b18ce7',
    500: '#8a5cdb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cdb;
$custom-light: #b18ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cdb",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 219
  },
  "hsl": {
    "h": 261.732,
    "s": 63.819,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58581,
    "c": 0.18664,
    "h": 297
  },
  "luminance": 0.18172
}

Semantic roles & 50–950 ramp

primary
#8A5CDB
secondary
#D0E1B1
accent
#CC1A8B
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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