#8A5DAF#8A5DAF

#8A5DAF is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.1% C 0.131 H 308.0°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#8A5DAF
RGBrgb(138, 93, 175)
HSLhsl(273, 34%, 53%)
HSVhsv(273, 47%, 69%)
CMYKcmyk(21.1%, 46.9%, 0%, 31.4%)
CIE-LABlab(47.40, 34.33, -36.89)
CIE-LCHlch(47.40, 50.39, 312.94°)
OKLaboklab(56.06% 0.0805 -0.1029)
OKLCHoklch(56.06% 0.131 308)
XYZxyz(22.1319, 16.3274, 42.5347)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5DAF #82AF5D
analogous
#615DAF #8A5DAF #AF5DAB
triadic
#8A5DAF #AF8A5D #5DAF8A
tetradic
#8A5DAF #AF615D #82AF5D #5DABAF
square
#8A5DAF #AF615D #82AF5D #5DABAF
split-complementary
#8A5DAF #ABAF5D #5DAF61
monochromatic
#4B3061 #6B448A #8A5DAF #A886C3 #C5AFD7

Accessibility & contrast

On white

4.92
#8A5DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#8A5DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5DAF
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5DAF#FFFFFF#000000##FFFFFF
##8A5DAF1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496FB2
Deuteranopia (green-blind)
#5571AD
Tritanopia (blue-blind)
#856A7E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5daf;
/* rgb */ color: rgb(138, 93, 175);
/* oklch */ color: oklch(56.1% 0.131 308.0);
Tailwind
colors: {
  custom: {
    50: '#ae8cc7',
    500: '#8a5daf',
    950: '#000000',
  },
}
SCSS
$custom: #8a5daf;
$custom-light: #ae8cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5daf",
  "rgb": {
    "r": 138,
    "g": 93,
    "b": 175
  },
  "hsl": {
    "h": 272.927,
    "s": 33.884,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56064,
    "c": 0.13069,
    "h": 308
  },
  "luminance": 0.16327
}

Semantic roles & 50–950 ramp

primary
#8A5DAF
secondary
#B2C6A2
accent
#CA5E8F
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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