#8A5BAF#8A5BAF

#8A5BAF is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.7% C 0.134 H 308.5°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#8A5BAF
RGBrgb(138, 91, 175)
HSLhsl(274, 34%, 52%)
HSVhsv(274, 48%, 69%)
CMYKcmyk(21.1%, 48%, 0%, 31.4%)
CIE-LABlab(46.95, 35.47, -37.60)
CIE-LCHlch(46.95, 51.69, 313.33°)
OKLaboklab(55.73% 0.0834 -0.105)
OKLCHoklch(55.73% 0.134 308.5)
XYZxyz(21.9587, 15.9809, 42.4770)
Luminance0.1598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5BAF #80AF5B
analogous
#605BAF #8A5BAF #AF5BAA
triadic
#8A5BAF #AF8A5B #5BAF8A
tetradic
#8A5BAF #AF605B #80AF5B #5BAAAF
square
#8A5BAF #AF605B #80AF5B #5BAAAF
split-complementary
#8A5BAF #AAAF5B #5BAF60
monochromatic
#4B2F61 #6B438A #8A5BAF #A784C3 #C5ADD7

Accessibility & contrast

On white

5.00
#8A5BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#8A5BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5BAF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5BAF#FFFFFF#000000##FFFFFF
##8A5BAF1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466DB2
Deuteranopia (green-blind)
#5370AD
Tritanopia (blue-blind)
#85697D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8a5baf;
/* rgb */ color: rgb(138, 91, 175);
/* oklch */ color: oklch(55.7% 0.134 308.5);
Tailwind
colors: {
  custom: {
    50: '#ae8ac7',
    500: '#8a5baf',
    950: '#000000',
  },
}
SCSS
$custom: #8a5baf;
$custom-light: #ae8ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5baf",
  "rgb": {
    "r": 138,
    "g": 91,
    "b": 175
  },
  "hsl": {
    "h": 273.571,
    "s": 34.426,
    "l": 52.157
  },
  "oklch": {
    "l": 0.55727,
    "c": 0.13409,
    "h": 308.5
  },
  "luminance": 0.15981
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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