#8A5EAF#8A5EAF

#8A5EAF is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.2% C 0.129 H 307.8°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#8A5EAF
RGBrgb(138, 94, 175)
HSLhsl(273, 34%, 53%)
HSVhsv(273, 46%, 69%)
CMYKcmyk(21.1%, 46.3%, 0%, 31.4%)
CIE-LABlab(47.63, 33.75, -36.53)
CIE-LCHlch(47.63, 49.74, 312.74°)
OKLaboklab(56.23% 0.0791 -0.1019)
OKLCHoklch(56.23% 0.129 307.8)
XYZxyz(22.2203, 16.5041, 42.5642)
Luminance0.1650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5EAF #83AF5E
analogous
#625EAF #8A5EAF #AF5EAB
triadic
#8A5EAF #AF8A5E #5EAF8A
tetradic
#8A5EAF #AF625E #83AF5E #5EABAF
square
#8A5EAF #AF625E #83AF5E #5EABAF
split-complementary
#8A5EAF #ABAF5E #5EAF62
monochromatic
#4B3162 #6B458B #8A5EAF #A887C3 #C5B0D8

Accessibility & contrast

On white

4.88
#8A5EAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#8A5EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5EAF
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5EAF#FFFFFF#000000##FFFFFF
##8A5EAF1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6FB2
Deuteranopia (green-blind)
#5672AD
Tritanopia (blue-blind)
#856B7E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8a5eaf;
/* rgb */ color: rgb(138, 94, 175);
/* oklch */ color: oklch(56.2% 0.129 307.8);
Tailwind
colors: {
  custom: {
    50: '#ae8cc7',
    500: '#8a5eaf',
    950: '#000000',
  },
}
SCSS
$custom: #8a5eaf;
$custom-light: #ae8cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5eaf",
  "rgb": {
    "r": 138,
    "g": 94,
    "b": 175
  },
  "hsl": {
    "h": 272.593,
    "s": 33.61,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56234,
    "c": 0.12898,
    "h": 307.8
  },
  "luminance": 0.16504
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A5EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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