#8A5AAF#8A5AAF

#8A5AAF is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.6% C 0.136 H 308.7°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8A5AAF
RGBrgb(138, 90, 175)
HSLhsl(274, 35%, 52%)
HSVhsv(274, 49%, 69%)
CMYKcmyk(21.1%, 48.6%, 0%, 31.4%)
CIE-LABlab(46.73, 36.04, -37.96)
CIE-LCHlch(46.73, 52.34, 313.51°)
OKLaboklab(55.56% 0.0848 -0.106)
OKLCHoklch(55.56% 0.136 308.7)
XYZxyz(21.8738, 15.8110, 42.4486)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5AAF #7FAF5A
analogous
#605AAF #8A5AAF #AF5AAA
triadic
#8A5AAF #AF8A5A #5AAF8A
tetradic
#8A5AAF #AF605A #7FAF5A #5AAAAF
square
#8A5AAF #AF605A #7FAF5A #5AAAAF
split-complementary
#8A5AAF #AAAF5A #5AAF60
monochromatic
#4B2F60 #6A4389 #8A5AAF #A783C3 #C4ACD7

Accessibility & contrast

On white

5.05
#8A5AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#8A5AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5AAF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5AAF#FFFFFF#000000##FFFFFF
##8A5AAF1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446DB2
Deuteranopia (green-blind)
#526FAD
Tritanopia (blue-blind)
#85687C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5aaf;
/* rgb */ color: rgb(138, 90, 175);
/* oklch */ color: oklch(55.6% 0.136 308.7);
Tailwind
colors: {
  custom: {
    50: '#ae8ac7',
    500: '#8a5aaf',
    950: '#000000',
  },
}
SCSS
$custom: #8a5aaf;
$custom-light: #ae8ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5aaf",
  "rgb": {
    "r": 138,
    "g": 90,
    "b": 175
  },
  "hsl": {
    "h": 273.882,
    "s": 34.694,
    "l": 51.961
  },
  "oklch": {
    "l": 0.5556,
    "c": 0.13578,
    "h": 308.7
  },
  "luminance": 0.15811
}

Semantic roles & 50–950 ramp

primary
#8A5AAF
secondary
#B0C5A0
accent
#CB5D8D
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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