#8A5EF5#8A5EF5

#8A5EF5 is a mid, highly saturated violet. Relative luminance 0.200; OKLCH L 60.7% C 0.215 H 292.2°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8A5EF5
RGBrgb(138, 94, 245)
HSLhsl(257, 88%, 66%)
HSVhsv(257, 62%, 96%)
CMYKcmyk(43.7%, 61.6%, 0%, 3.9%)
CIE-LABlab(51.84, 51.63, -69.76)
CIE-LCHlch(51.84, 86.78, 306.50°)
OKLaboklab(60.69% 0.0812 -0.1992)
OKLCHoklch(60.69% 0.215 292.2)
XYZxyz(30.9608, 20.0003, 88.5977)
Luminance0.2000 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EF5 #C9F55E
analogous
#5E7EF5 #8A5EF5 #D55EF5
triadic
#8A5EF5 #F58A5E #5EF58A
tetradic
#8A5EF5 #F55E7E #C9F55E #5EF5D5
square
#8A5EF5 #F55E7E #C9F55E #5EF5D5
split-complementary
#8A5EF5 #F5D55E #7EF55E
monochromatic
#440DCC #6024F1 #8A5EF5 #B498F9 #DED1FC

Accessibility & contrast

On white

4.20
#8A5EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#8A5EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5EF5
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EF5#FFFFFF#000000##000000
##8A5EF51.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EFA
Deuteranopia (green-blind)
#0079F2
Tritanopia (blue-blind)
#6B81A1
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a5ef5;
/* rgb */ color: rgb(138, 94, 245);
/* oklch */ color: oklch(60.7% 0.215 292.2);
Tailwind
colors: {
  custom: {
    50: '#b38ef9',
    500: '#8a5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ef5;
$custom-light: #b38ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ef5",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 257.483,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60686,
    "c": 0.21515,
    "h": 292.2
  },
  "luminance": 0.20001
}

Semantic roles & 50–950 ramp

primary
#8A5EF5
secondary
#E2F0BF
accent
#E501A2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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