#8A5FD2#8A5FD2

#8A5FD2 is a mid, vivid violet. Relative luminance 0.182; OKLCH L 58.5% C 0.171 H 298.2°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#8A5FD2
RGBrgb(138, 95, 210)
HSLhsl(262, 56%, 60%)
HSVhsv(262, 55%, 82%)
CMYKcmyk(34.3%, 54.8%, 0%, 17.6%)
CIE-LABlab(49.79, 41.86, -53.32)
CIE-LCHlch(49.79, 67.79, 308.13°)
OKLaboklab(58.46% 0.0809 -0.1509)
OKLCHoklch(58.46% 0.171 298.2)
XYZxyz(26.2034, 18.2405, 63.1005)
Luminance0.1824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FD2 #A7D25F
analogous
#5F6DD2 #8A5FD2 #C45FD2
triadic
#8A5FD2 #D28A5F #5FD28A
tetradic
#8A5FD2 #D25F6D #A7D25F #5FD2C4
square
#8A5FD2 #D25F6D #A7D25F #5FD2C4
split-complementary
#8A5FD2 #D2C45F #6DD25F
monochromatic
#4E288F #6936BE #8A5FD2 #AD8FDF #D0BFED

Accessibility & contrast

On white

4.52
#8A5FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#8A5FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A5FD2
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FD2#FFFFFF#000000##000000
##8A5FD21.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E77D6
Deuteranopia (green-blind)
#3C75CF
Tritanopia (blue-blind)
#7A768F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8a5fd2;
/* rgb */ color: rgb(138, 95, 210);
/* oklch */ color: oklch(58.5% 0.171 298.2);
Tailwind
colors: {
  custom: {
    50: '#b08ee0',
    500: '#8a5fd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fd2;
$custom-light: #b08ee0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fd2",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 210
  },
  "hsl": {
    "h": 262.435,
    "s": 56.098,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58464,
    "c": 0.17123,
    "h": 298.2
  },
  "luminance": 0.18241
}

Semantic roles & 50–950 ramp

primary
#8A5FD2
secondary
#CCDDB0
accent
#DF48A7
background
#FBF8FD
surface
#F6F0FB
border
#D0CBD4
text
#110C15
muted
#807D83

Preview Lab

Preview with #8A5FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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