#8A5CB2#8A5CB2

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

Color values

HEX#8A5CB2
RGBrgb(138, 92, 178)
HSLhsl(272, 36%, 53%)
HSVhsv(272, 48%, 70%)
CMYKcmyk(22.5%, 48.3%, 0%, 30.2%)
CIE-LABlab(47.33, 35.61, -38.76)
CIE-LCHlch(47.33, 52.63, 312.58°)
OKLaboklab(56.06% 0.0824 -0.1083)
OKLCHoklch(56.06% 0.136 307.2)
XYZxyz(22.3427, 16.2721, 44.0747)
Luminance0.1627 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CB2 #84B25C
analogous
#5F5CB2 #8A5CB2 #B25CAF
triadic
#8A5CB2 #B28A5C #5CB28A
tetradic
#8A5CB2 #B25F5C #84B25C #5CAFB2
square
#8A5CB2 #B25F5C #84B25C #5CAFB2
split-complementary
#8A5CB2 #AFB25C #5CB25F
monochromatic
#4C2F64 #6B438E #8A5CB2 #A886C6 #C6AFD9

Accessibility & contrast

On white

4.94
#8A5CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#8A5CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CB2
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CB2#FFFFFF#000000##FFFFFF
##8A5CB21.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456EB5
Deuteranopia (green-blind)
#5271B0
Tritanopia (blue-blind)
#846A7F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8a5cb2;
/* rgb */ color: rgb(138, 92, 178);
/* oklch */ color: oklch(56.1% 0.136 307.2);
Tailwind
colors: {
  custom: {
    50: '#ae8bc9',
    500: '#8a5cb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5cb2;
$custom-light: #ae8bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5cb2",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 178
  },
  "hsl": {
    "h": 272.093,
    "s": 35.833,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56061,
    "c": 0.1361,
    "h": 307.2
  },
  "luminance": 0.16272
}

Semantic roles & 50–950 ramp

primary
#8A5CB2
secondary
#B4C7A2
accent
#CC5C90
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A5CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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