#8A5FEB#8A5FEB

#8A5FEB is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.1% C 0.202 H 293.6°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8A5FEB
RGBrgb(138, 95, 235)
HSLhsl(258, 78%, 65%)
HSVhsv(258, 60%, 92%)
CMYKcmyk(41.3%, 59.6%, 0%, 7.8%)
CIE-LABlab(51.36, 48.41, -64.93)
CIE-LCHlch(51.36, 80.99, 306.71°)
OKLaboklab(60.13% 0.0807 -0.185)
OKLCHoklch(60.13% 0.202 293.6)
XYZxyz(29.5648, 19.5851, 80.8038)
Luminance0.1959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FEB #C0EB5F
analogous
#5F7AEB #8A5FEB #D05FEB
triadic
#8A5FEB #EB8A5F #5FEB8A
tetradic
#8A5FEB #EB5F7A #C0EB5F #5FEBD0
square
#8A5FEB #EB5F7A #C0EB5F #5FEBD0
split-complementary
#8A5FEB #EBD05F #7AEB5F
monochromatic
#4917B9 #6229E4 #8A5FEB #B295F2 #DACCF9

Accessibility & contrast

On white

4.27
#8A5FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#8A5FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FEB
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FEB#FFFFFF#000000##000000
##8A5FEB1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF0
Deuteranopia (green-blind)
#0878E8
Tritanopia (blue-blind)
#707E9C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a5feb;
/* rgb */ color: rgb(138, 95, 235);
/* oklch */ color: oklch(60.1% 0.202 293.6);
Tailwind
colors: {
  custom: {
    50: '#b28ef2',
    500: '#8a5feb',
    950: '#000000',
  },
}
SCSS
$custom: #8a5feb;
$custom-light: #b28ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5feb",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 258.429,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.60128,
    "c": 0.20187,
    "h": 293.6
  },
  "luminance": 0.19586
}

Semantic roles & 50–950 ramp

primary
#8A5FEB
secondary
#DCEBBB
accent
#DA0B9B
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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