#8A5FFE#8A5FFE

#8A5FFE is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.5% C 0.225 H 290.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8A5FFE
RGBrgb(138, 95, 254)
HSLhsl(256, 99%, 68%)
HSVhsv(256, 63%, 100%)
CMYKcmyk(45.7%, 62.6%, 0%, 0.4%)
CIE-LABlab(52.67, 53.51, -73.42)
CIE-LCHlch(52.67, 90.85, 306.09°)
OKLaboklab(61.49% 0.0795 -0.21)
OKLCHoklch(61.49% 0.225 290.7)
XYZxyz(32.4578, 20.7423, 96.0402)
Luminance0.2074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FFE #D3FE5F
analogous
#5F83FE #8A5FFE #D95FFE
triadic
#8A5FFE #FE8A5F #5FFE8A
tetradic
#8A5FFE #FE5F83 #D3FE5F #5FFED9
square
#8A5FFE #FE5F83 #D3FE5F #5FFED9
split-complementary
#8A5FFE #FED95F #83FE5F
monochromatic
#3E01E1 #5E22FE #8A5FFE #B69CFE #E3D9FF

Accessibility & contrast

On white

4.08
#8A5FFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8A5FFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FFE
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FFE#FFFFFF#000000##000000
##8A5FFE1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#007AFB
Tritanopia (blue-blind)
#6685A6
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a5ffe;
/* rgb */ color: rgb(138, 95, 254);
/* oklch */ color: oklch(61.5% 0.225 290.7);
Tailwind
colors: {
  custom: {
    50: '#b48eff',
    500: '#8a5ffe',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ffe;
$custom-light: #b48eff;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ffe",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 254
  },
  "hsl": {
    "h": 256.226,
    "s": 98.758,
    "l": 68.431
  },
  "oklch": {
    "l": 0.61486,
    "c": 0.22454,
    "h": 290.7
  },
  "luminance": 0.20743
}

Semantic roles & 50–950 ramp

primary
#8A5FFE
secondary
#E7F4C4
accent
#E600A7
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C18
muted
#817D86

Preview Lab

Preview with #8A5FFE

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

Preview Lab → · Contrast checker → · Palette generator →

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