#8A5CD7#8A5CD7

#8A5CD7 is a mid, vivid violet. Relative luminance 0.180; OKLCH L 58.3% C 0.182 H 297.8°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#8A5CD7
RGBrgb(138, 92, 215)
HSLhsl(262, 61%, 60%)
HSVhsv(262, 57%, 84%)
CMYKcmyk(35.8%, 57.2%, 0%, 15.7%)
CIE-LABlab(49.45, 44.81, -56.71)
CIE-LCHlch(49.45, 72.28, 308.32°)
OKLaboklab(58.32% 0.0846 -0.1609)
OKLCHoklch(58.32% 0.182 297.8)
XYZxyz(26.5711, 17.9635, 66.3442)
Luminance0.1796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CD7 #A9D75C
analogous
#5C6BD7 #8A5CD7 #C75CD7
triadic
#8A5CD7 #D78A5C #5CD78A
tetradic
#8A5CD7 #D75C6B #A9D75C #5CD7C7
square
#8A5CD7 #D75C6B #A9D75C #5CD7C7
split-complementary
#8A5CD7 #D7C75C #6BD75C
monochromatic
#4E2494 #6830C5 #8A5CD7 #AD8DE3 #D1BEEF

Accessibility & contrast

On white

4.57
#8A5CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#8A5CD7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CD7
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CD7#FFFFFF#000000##000000
##8A5CD71.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D76DB
Deuteranopia (green-blind)
#3174D4
Tritanopia (blue-blind)
#787691
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5cd7;
/* rgb */ color: rgb(138, 92, 215);
/* oklch */ color: oklch(58.3% 0.182 297.8);
Tailwind
colors: {
  custom: {
    50: '#b08ce4',
    500: '#8a5cd7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cd7;
$custom-light: #b08ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cd7",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 262.439,
    "s": 60.591,
    "l": 60.196
  },
  "oklch": {
    "l": 0.58316,
    "c": 0.18178,
    "h": 297.8
  },
  "luminance": 0.17964
}

Semantic roles & 50–950 ramp

primary
#8A5CD7
secondary
#CDDFB0
accent
#C81D88
background
#FBF8FE
surface
#F6F0FC
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #8A5CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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