#8A5FBD#8A5FBD

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

Color values

HEX#8A5FBD
RGBrgb(138, 95, 189)
HSLhsl(267, 42%, 56%)
HSVhsv(267, 50%, 74%)
CMYKcmyk(27%, 49.7%, 0%, 25.9%)
CIE-LABlab(48.59, 36.56, -43.16)
CIE-LCHlch(48.59, 56.56, 310.27°)
OKLaboklab(57.19% 0.0795 -0.1212)
OKLCHoklch(57.19% 0.145 303.2)
XYZxyz(23.7567, 17.2618, 50.2146)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FBD #92BD5F
analogous
#5F63BD #8A5FBD #B95FBD
triadic
#8A5FBD #BD8A5F #5FBD8A
tetradic
#8A5FBD #BD5F63 #92BD5F #5FBDB9
square
#8A5FBD #BD5F63 #92BD5F #5FBDB9
split-complementary
#8A5FBD #BDB95F #63BD5F
monochromatic
#4E2F72 #6B419E #8A5FBD #AA8ACF #C9B6E1

Accessibility & contrast

On white

4.72
#8A5FBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#8A5FBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FBD
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FBD#FFFFFF#000000##FFFFFF
##8A5FBD1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4272C0
Deuteranopia (green-blind)
#4E73BB
Tritanopia (blue-blind)
#817085
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a5fbd;
/* rgb */ color: rgb(138, 95, 189);
/* oklch */ color: oklch(57.2% 0.145 303.2);
Tailwind
colors: {
  custom: {
    50: '#ae8dd1',
    500: '#8a5fbd',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fbd;
$custom-light: #ae8dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fbd",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 189
  },
  "hsl": {
    "h": 267.447,
    "s": 41.593,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57189,
    "c": 0.14491,
    "h": 303.2
  },
  "luminance": 0.17262
}

Semantic roles & 50–950 ramp

primary
#8A5FBD
secondary
#BECFA8
accent
#D15699
background
#FAF8FC
surface
#F5F0F9
border
#CFCBD2
text
#110C14
muted
#807D82

Preview Lab

Preview with #8A5FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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