#8A5FF0#8A5FF0

#8A5FF0 is a mid, highly saturated violet. Relative luminance 0.199; OKLCH L 60.5% C 0.208 H 292.8°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#8A5FF0
RGBrgb(138, 95, 240)
HSLhsl(258, 83%, 66%)
HSVhsv(258, 60%, 94%)
CMYKcmyk(42.5%, 60.4%, 0%, 5.9%)
CIE-LABlab(51.70, 49.75, -67.19)
CIE-LCHlch(51.70, 83.60, 306.52°)
OKLaboklab(60.48% 0.0805 -0.1917)
OKLCHoklch(60.48% 0.208 292.8)
XYZxyz(30.2973, 19.8781, 84.6617)
Luminance0.1988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FF0 #C5F05F
analogous
#5F7CF0 #8A5FF0 #D25FF0
triadic
#8A5FF0 #F08A5F #5FF08A
tetradic
#8A5FF0 #F05F7C #C5F05F #5FF0D2
square
#8A5FF0 #F05F7C #C5F05F #5FF0D2
split-complementary
#8A5FF0 #F0D25F #7CF05F
monochromatic
#4612C2 #6127EB #8A5FF0 #B397F5 #DCCFFA

Accessibility & contrast

On white

4.22
#8A5FF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#8A5FF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FF0
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FF0#FFFFFF#000000##000000
##8A5FF01.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF5
Deuteranopia (green-blind)
#0078ED
Tritanopia (blue-blind)
#6E809F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5ff0;
/* rgb */ color: rgb(138, 95, 240);
/* oklch */ color: oklch(60.5% 0.208 292.8);
Tailwind
colors: {
  custom: {
    50: '#b38ef6',
    500: '#8a5ff0',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ff0;
$custom-light: #b38ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ff0",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 240
  },
  "hsl": {
    "h": 257.793,
    "s": 82.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.60478,
    "c": 0.20789,
    "h": 292.8
  },
  "luminance": 0.19879
}

Semantic roles & 50–950 ramp

primary
#8A5FF0
secondary
#DFEEBD
accent
#DF069F
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120C17
muted
#817D85

Preview Lab

Preview with #8A5FF0

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

Preview Lab → · Contrast checker → · Palette generator →

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