#8A5CED#8A5CED

#8A5CED is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 59.8% C 0.208 H 293.8°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#8A5CED
RGBrgb(138, 92, 237)
HSLhsl(259, 80%, 65%)
HSVhsv(259, 61%, 93%)
CMYKcmyk(41.8%, 61.2%, 0%, 7.1%)
CIE-LABlab(50.89, 50.57, -66.82)
CIE-LCHlch(50.89, 83.80, 307.12°)
OKLaboklab(59.82% 0.0839 -0.1906)
OKLCHoklch(59.82% 0.208 293.8)
XYZxyz(29.5903, 19.1712, 82.2457)
Luminance0.1917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CED #BFED5C
analogous
#5C77ED #8A5CED #D25CED
triadic
#8A5CED #ED8A5C #5CED8A
tetradic
#8A5CED #ED5C77 #BFED5C #5CEDD2
square
#8A5CED #ED5C77 #BFED5C #5CEDD2
split-complementary
#8A5CED #EDD25C #77ED5C
monochromatic
#4915BA #6225E7 #8A5CED #B293F3 #D9CAF9

Accessibility & contrast

On white

4.34
#8A5CED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#8A5CED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CED
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CED#FFFFFF#000000##000000
##8A5CED1.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF2
Deuteranopia (green-blind)
#0077EA
Tritanopia (blue-blind)
#6F7D9C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8a5ced;
/* rgb */ color: rgb(138, 92, 237);
/* oklch */ color: oklch(59.8% 0.208 293.8);
Tailwind
colors: {
  custom: {
    50: '#b28cf4',
    500: '#8a5ced',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ced;
$custom-light: #b28cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ced",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 237
  },
  "hsl": {
    "h": 259.034,
    "s": 80.11,
    "l": 64.51
  },
  "oklch": {
    "l": 0.59822,
    "c": 0.20825,
    "h": 293.8
  },
  "luminance": 0.19172
}

Semantic roles & 50–950 ramp

primary
#8A5CED
secondary
#DCEBB9
accent
#DC0999
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5CED

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

Preview Lab → · Contrast checker → · Palette generator →

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