#8A5CF7#8A5CF7

#8A5CF7 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.5% C 0.220 H 292.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8A5CF7
RGBrgb(138, 92, 247)
HSLhsl(258, 91%, 66%)
HSVhsv(258, 63%, 97%)
CMYKcmyk(44.1%, 62.8%, 0%, 3.1%)
CIE-LABlab(51.58, 53.23, -71.29)
CIE-LCHlch(51.58, 88.97, 306.75°)
OKLaboklab(60.54% 0.0832 -0.2037)
OKLCHoklch(60.54% 0.22 292.2)
XYZxyz(31.0922, 19.7720, 90.1558)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CF7 #C9F75C
analogous
#5C7CF7 #8A5CF7 #D75CF7
triadic
#8A5CF7 #F78A5C #5CF78A
tetradic
#8A5CF7 #F75C7C #C9F75C #5CF7D7
square
#8A5CF7 #F75C7C #C9F75C #5CF7D7
split-complementary
#8A5CF7 #F7D75C #7CF75C
monochromatic
#440ACE #6022F4 #8A5CF7 #B496FA #DED1FD

Accessibility & contrast

On white

4.24
#8A5CF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#8A5CF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CF7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CF7#FFFFFF#000000##000000
##8A5CF71.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFC
Deuteranopia (green-blind)
#0078F4
Tritanopia (blue-blind)
#6A80A1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5cf7;
/* rgb */ color: rgb(138, 92, 247);
/* oklch */ color: oklch(60.5% 0.220 292.2);
Tailwind
colors: {
  custom: {
    50: '#b38cfb',
    500: '#8a5cf7',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cf7;
$custom-light: #b38cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cf7",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 247
  },
  "hsl": {
    "h": 257.806,
    "s": 90.643,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60542,
    "c": 0.22006,
    "h": 292.2
  },
  "luminance": 0.19773
}

Semantic roles & 50–950 ramp

primary
#8A5CF7
secondary
#E2F1BE
accent
#E600A1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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