#8A5AF8#8A5AF8

#8A5AF8 is a mid, highly saturated violet. Relative luminance 0.195; OKLCH L 60.3% C 0.224 H 292.4°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8A5AF8
RGBrgb(138, 90, 248)
HSLhsl(258, 92%, 66%)
HSVhsv(258, 64%, 97%)
CMYKcmyk(44.4%, 63.7%, 0%, 2.7%)
CIE-LABlab(51.26, 54.55, -72.37)
CIE-LCHlch(51.26, 90.63, 307.01°)
OKLaboklab(60.33% 0.0851 -0.2069)
OKLCHoklch(60.33% 0.224 292.4)
XYZxyz(31.0760, 19.4919, 90.9137)
Luminance0.1949 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AF8 #C8F85A
analogous
#5A79F8 #8A5AF8 #D95AF8
triadic
#8A5AF8 #F88A5A #5AF88A
tetradic
#8A5AF8 #F85A79 #C8F85A #5AF8D9
square
#8A5AF8 #F85A79 #C8F85A #5AF8D9
split-complementary
#8A5AF8 #F8D95A #79F85A
monochromatic
#4509CF #601FF6 #8A5AF8 #B495FA #DDCFFD

Accessibility & contrast

On white

4.29
#8A5AF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#8A5AF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5AF8
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AF8#FFFFFF#000000##000000
##8A5AF81.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFD
Deuteranopia (green-blind)
#0077F5
Tritanopia (blue-blind)
#6A7FA1
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5af8;
/* rgb */ color: rgb(138, 90, 248);
/* oklch */ color: oklch(60.3% 0.224 292.4);
Tailwind
colors: {
  custom: {
    50: '#b48bfc',
    500: '#8a5af8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5af8;
$custom-light: #b48bfc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5af8",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 248
  },
  "hsl": {
    "h": 258.228,
    "s": 91.86,
    "l": 66.275
  },
  "oklch": {
    "l": 0.60333,
    "c": 0.22372,
    "h": 292.4
  },
  "luminance": 0.19493
}

Semantic roles & 50–950 ramp

primary
#8A5AF8
secondary
#E1F1BD
accent
#E600A0
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8A5AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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