#8A5FEC#8A5FEC

#8A5FEC is a mid, highly saturated violet. Relative luminance 0.196; OKLCH L 60.2% C 0.203 H 293.4°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8A5FEC
RGBrgb(138, 95, 236)
HSLhsl(258, 79%, 65%)
HSVhsv(258, 60%, 93%)
CMYKcmyk(41.5%, 59.7%, 0%, 7.5%)
CIE-LABlab(51.43, 48.68, -65.38)
CIE-LCHlch(51.43, 81.51, 306.67°)
OKLaboklab(60.2% 0.0807 -0.1864)
OKLCHoklch(60.2% 0.203 293.4)
XYZxyz(29.7097, 19.6430, 81.5668)
Luminance0.1964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FEC #C1EC5F
analogous
#5F7AEC #8A5FEC #D15FEC
triadic
#8A5FEC #EC8A5F #5FEC8A
tetradic
#8A5FEC #EC5F7A #C1EC5F #5FECD1
square
#8A5FEC #EC5F7A #C1EC5F #5FECD1
split-complementary
#8A5FEC #ECD15F #7AEC5F
monochromatic
#4816BA #6228E6 #8A5FEC #B296F2 #DACCF9

Accessibility & contrast

On white

4.26
#8A5FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#8A5FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FEC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FEC#FFFFFF#000000##000000
##8A5FEC1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CF1
Deuteranopia (green-blind)
#0278E9
Tritanopia (blue-blind)
#6F7E9D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a5fec;
/* rgb */ color: rgb(138, 95, 236);
/* oklch */ color: oklch(60.2% 0.203 293.4);
Tailwind
colors: {
  custom: {
    50: '#b28ef3',
    500: '#8a5fec',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fec;
$custom-light: #b28ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fec",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 258.298,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.60197,
    "c": 0.20308,
    "h": 293.4
  },
  "luminance": 0.19644
}

Semantic roles & 50–950 ramp

primary
#8A5FEC
secondary
#DDEBBB
accent
#DB0A9B
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #8A5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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