#8A5FB8#8A5FB8

#8A5FB8 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 56.9% C 0.139 H 304.7°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#8A5FB8
RGBrgb(138, 95, 184)
HSLhsl(269, 39%, 55%)
HSVhsv(269, 48%, 72%)
CMYKcmyk(25%, 48.4%, 0%, 27.8%)
CIE-LABlab(48.32, 35.34, -40.69)
CIE-LCHlch(48.32, 53.89, 310.98°)
OKLaboklab(56.9% 0.0789 -0.114)
OKLCHoklch(56.9% 0.139 304.7)
XYZxyz(23.2233, 17.0485, 47.4053)
Luminance0.1705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FB8 #8DB85F
analogous
#5F61B8 #8A5FB8 #B75FB8
triadic
#8A5FB8 #B88A5F #5FB88A
tetradic
#8A5FB8 #B85F61 #8DB85F #5FB8B7
square
#8A5FB8 #B85F61 #8DB85F #5FB8B7
split-complementary
#8A5FB8 #B8B75F #61B85F
monochromatic
#4D306C #6B4397 #8A5FB8 #A989CB #C8B4DE

Accessibility & contrast

On white

4.76
#8A5FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#8A5FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FB8
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FB8#FFFFFF#000000##FFFFFF
##8A5FB81.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4671BB
Deuteranopia (green-blind)
#5173B6
Tritanopia (blue-blind)
#826E83
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5fb8;
/* rgb */ color: rgb(138, 95, 184);
/* oklch */ color: oklch(56.9% 0.139 304.7);
Tailwind
colors: {
  custom: {
    50: '#ae8dce',
    500: '#8a5fb8',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fb8;
$custom-light: #ae8dce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fb8",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 184
  },
  "hsl": {
    "h": 268.989,
    "s": 38.528,
    "l": 54.706
  },
  "oklch": {
    "l": 0.56903,
    "c": 0.1386,
    "h": 304.7
  },
  "luminance": 0.17048
}

Semantic roles & 50–950 ramp

primary
#8A5FB8
secondary
#BACCA7
accent
#CE5996
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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