#8A5CF8#8A5CF8

#8A5CF8 is a mid, highly saturated violet. Relative luminance 0.198; OKLCH L 60.6% C 0.221 H 292.1°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#8A5CF8
RGBrgb(138, 92, 248)
HSLhsl(258, 92%, 67%)
HSVhsv(258, 63%, 97%)
CMYKcmyk(44.4%, 62.9%, 0%, 2.7%)
CIE-LABlab(51.65, 53.50, -71.73)
CIE-LCHlch(51.65, 89.48, 306.71°)
OKLaboklab(60.62% 0.0831 -0.205)
OKLCHoklch(60.62% 0.221 292.1)
XYZxyz(31.2470, 19.8339, 90.9707)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CF8 #CAF85C
analogous
#5C7CF8 #8A5CF8 #D85CF8
triadic
#8A5CF8 #F88A5C #5CF88A
tetradic
#8A5CF8 #F85C7C #CAF85C #5CF8D8
square
#8A5CF8 #F85C7C #CAF85C #5CF8D8
split-complementary
#8A5CF8 #F8D85C #7CF85C
monochromatic
#4409D1 #6021F5 #8A5CF8 #B497FB #DED1FD

Accessibility & contrast

On white

4.23
#8A5CF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#8A5CF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5CF8
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CF8#FFFFFF#000000##000000
##8A5CF81.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFD
Deuteranopia (green-blind)
#0078F5
Tritanopia (blue-blind)
#6A81A2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5cf8;
/* rgb */ color: rgb(138, 92, 248);
/* oklch */ color: oklch(60.6% 0.221 292.1);
Tailwind
colors: {
  custom: {
    50: '#b48cfc',
    500: '#8a5cf8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cf8;
$custom-light: #b48cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cf8",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 248
  },
  "hsl": {
    "h": 257.692,
    "s": 91.765,
    "l": 66.667
  },
  "oklch": {
    "l": 0.60616,
    "c": 0.22123,
    "h": 292.1
  },
  "luminance": 0.19835
}

Semantic roles & 50–950 ramp

primary
#8A5CF8
secondary
#E2F1BF
accent
#E600A2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8A5CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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