#8A5FF8#8A5FF8

#8A5FF8 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.0% C 0.217 H 291.6°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#8A5FF8
RGBrgb(138, 95, 248)
HSLhsl(257, 92%, 67%)
HSVhsv(257, 62%, 97%)
CMYKcmyk(44.4%, 61.7%, 0%, 2.7%)
CIE-LABlab(52.25, 51.89, -70.76)
CIE-LCHlch(52.25, 87.75, 306.25°)
OKLaboklab(61.05% 0.08 -0.2022)
OKLCHoklch(61.05% 0.217 291.6)
XYZxyz(31.5120, 20.3640, 91.0590)
Luminance0.2036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FF8 #CDF85F
analogous
#5F80F8 #8A5FF8 #D75FF8
triadic
#8A5FF8 #F88A5F #5FF88A
tetradic
#8A5FF8 #F85F80 #CDF85F #5FF8D7
square
#8A5FF8 #F85F80 #CDF85F #5FF8D7
split-complementary
#8A5FF8 #F8D75F #80F85F
monochromatic
#4209D3 #5F24F5 #8A5FF8 #B59AFB #E0D4FD

Accessibility & contrast

On white

4.14
#8A5FF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#8A5FF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FF8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FF8#FFFFFF#000000##000000
##8A5FF81.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFD
Deuteranopia (green-blind)
#0079F5
Tritanopia (blue-blind)
#6983A3
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a5ff8;
/* rgb */ color: rgb(138, 95, 248);
/* oklch */ color: oklch(61.0% 0.217 291.6);
Tailwind
colors: {
  custom: {
    50: '#b38efb',
    500: '#8a5ff8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ff8;
$custom-light: #b38efb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ff8",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 248
  },
  "hsl": {
    "h": 256.863,
    "s": 91.617,
    "l": 67.255
  },
  "oklch": {
    "l": 0.61049,
    "c": 0.21744,
    "h": 291.6
  },
  "luminance": 0.20365
}

Semantic roles & 50–950 ramp

primary
#8A5FF8
secondary
#E4F2C1
accent
#E600A5
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8A5FF8

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

Preview Lab → · Contrast checker → · Palette generator →

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