#8A5FBE#8A5FBE

#8A5FBE is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.2% C 0.146 H 303.0°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8A5FBE
RGBrgb(138, 95, 190)
HSLhsl(267, 42%, 56%)
HSVhsv(267, 50%, 75%)
CMYKcmyk(27.4%, 50%, 0%, 25.5%)
CIE-LABlab(48.64, 36.81, -43.65)
CIE-LCHlch(48.64, 57.10, 310.14°)
OKLaboklab(57.25% 0.0796 -0.1226)
OKLCHoklch(57.25% 0.146 303)
XYZxyz(23.8656, 17.3054, 50.7882)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FBE #93BE5F
analogous
#5F63BE #8A5FBE #B95FBE
triadic
#8A5FBE #BE8A5F #5FBE8A
tetradic
#8A5FBE #BE5F63 #93BE5F #5FBEB9
square
#8A5FBE #BE5F63 #93BE5F #5FBEB9
split-complementary
#8A5FBE #BEB95F #63BE5F
monochromatic
#4E2F74 #6B419F #8A5FBE #AA8BD0 #CAB6E1

Accessibility & contrast

On white

4.71
#8A5FBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#8A5FBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FBE
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FBE#FFFFFF#000000##FFFFFF
##8A5FBE1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4173C1
Deuteranopia (green-blind)
#4D73BC
Tritanopia (blue-blind)
#817086
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5fbe;
/* rgb */ color: rgb(138, 95, 190);
/* oklch */ color: oklch(57.2% 0.146 303.0);
Tailwind
colors: {
  custom: {
    50: '#af8dd2',
    500: '#8a5fbe',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fbe;
$custom-light: #af8dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fbe",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 190
  },
  "hsl": {
    "h": 267.158,
    "s": 42.222,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57247,
    "c": 0.14617,
    "h": 303
  },
  "luminance": 0.17305
}

Semantic roles & 50–950 ramp

primary
#8A5FBE
secondary
#BED0A9
accent
#D2569A
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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