#8A5FBF#8A5FBF

#8A5FBF is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.3% C 0.147 H 302.7°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#8A5FBF
RGBrgb(138, 95, 191)
HSLhsl(267, 43%, 56%)
HSVhsv(267, 50%, 75%)
CMYKcmyk(27.7%, 50.3%, 0%, 25.1%)
CIE-LABlab(48.70, 37.05, -44.15)
CIE-LCHlch(48.70, 57.64, 310.01°)
OKLaboklab(57.3% 0.0797 -0.1241)
OKLCHoklch(57.3% 0.147 302.7)
XYZxyz(23.9753, 17.3493, 51.3658)
Luminance0.1735 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5FBF #94BF5F
analogous
#5F64BF #8A5FBF #BA5FBF
triadic
#8A5FBF #BF8A5F #5FBF8A
tetradic
#8A5FBF #BF5F64 #94BF5F #5FBFBA
square
#8A5FBF #BF5F64 #94BF5F #5FBFBA
split-complementary
#8A5FBF #BFBA5F #64BF5F
monochromatic
#4E2F75 #6B40A1 #8A5FBF #AA8BD0 #CAB6E2

Accessibility & contrast

On white

4.70
#8A5FBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#8A5FBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5FBF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5FBF#FFFFFF#000000##FFFFFF
##8A5FBF1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4173C2
Deuteranopia (green-blind)
#4C73BD
Tritanopia (blue-blind)
#807086
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8a5fbf;
/* rgb */ color: rgb(138, 95, 191);
/* oklch */ color: oklch(57.3% 0.147 302.7);
Tailwind
colors: {
  custom: {
    50: '#af8dd3',
    500: '#8a5fbf',
    950: '#000000',
  },
}
SCSS
$custom: #8a5fbf;
$custom-light: #af8dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5fbf",
  "rgb": {
    "r": 138,
    "g": 95,
    "b": 191
  },
  "hsl": {
    "h": 266.875,
    "s": 42.857,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57305,
    "c": 0.14743,
    "h": 302.7
  },
  "luminance": 0.17349
}

Semantic roles & 50–950 ramp

primary
#8A5FBF
secondary
#BFD1A9
accent
#D3559A
background
#FBF8FD
surface
#F6F0FA
border
#D0CBD3
text
#110C14
muted
#807D83

Preview Lab

Preview with #8A5FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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