#8A5FF4#8A5FF4

#8A5FF4 is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 60.8% C 0.213 H 292.2°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#8A5FF4
RGBrgb(138, 95, 244)
HSLhsl(257, 87%, 66%)
HSVhsv(257, 61%, 96%)
CMYKcmyk(43.4%, 61.1%, 0%, 4.3%)
CIE-LABlab(51.97, 50.82, -68.98)
CIE-LCHlch(51.97, 85.68, 306.38°)
OKLaboklab(60.76% 0.0802 -0.197)
OKLCHoklch(60.76% 0.213 292.2)
XYZxyz(30.8981, 20.1184, 87.8257)
Luminance0.2012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FF4 #C9F45F
analogous
#5F7FF4 #8A5FF4 #D45FF4
triadic
#8A5FF4 #F48A5F #5FF48A
tetradic
#8A5FF4 #F45F7F #C9F45F #5FF4D4
square
#8A5FF4 #F45F7F #C9F45F #5FF4D4
split-complementary
#8A5FF4 #F4D45F #7FF45F
monochromatic
#440ECB #6026F0 #8A5FF4 #B498F8 #DED2FC

Accessibility & contrast

On white

4.18
#8A5FF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#8A5FF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FF4
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FF4#FFFFFF#000000##000000
##8A5FF41.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF9
Deuteranopia (green-blind)
#0079F1
Tritanopia (blue-blind)
#6C81A1
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a5ff4;
/* rgb */ color: rgb(138, 95, 244);
/* oklch */ color: oklch(60.8% 0.213 292.2);
Tailwind
colors: {
  custom: {
    50: '#b38ef9',
    500: '#8a5ff4',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ff4;
$custom-light: #b38ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ff4",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 244
  },
  "hsl": {
    "h": 257.315,
    "s": 87.135,
    "l": 66.471
  },
  "oklch": {
    "l": 0.60762,
    "c": 0.21268,
    "h": 292.2
  },
  "luminance": 0.20119
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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