#8A5CA2#8A5CA2

#8A5CA2 is a mid, moderate violet. Relative luminance 0.157; OKLCH L 55.2% C 0.116 H 313.3°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#8A5CA2
RGBrgb(138, 92, 162)
HSLhsl(279, 28%, 50%)
HSVhsv(279, 43%, 64%)
CMYKcmyk(14.8%, 43.2%, 0%, 36.5%)
CIE-LABlab(46.53, 31.91, -30.61)
CIE-LCHlch(46.53, 44.21, 316.19°)
OKLaboklab(55.21% 0.0798 -0.0848)
OKLCHoklch(55.21% 0.116 313.3)
XYZxyz(20.8289, 15.6666, 36.1021)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A5CA2 #74A25C
analogous
#675CA2 #8A5CA2 #A25C97
triadic
#8A5CA2 #A28A5C #5CA28A
tetradic
#8A5CA2 #A2675C #74A25C #5C97A2
square
#8A5CA2 #A2675C #74A25C #5C97A2
split-complementary
#8A5CA2 #97A25C #5CA267
monochromatic
#473054 #69467B #8A5CA2 #A683B8 #C2AACF

Accessibility & contrast

On white

5.08
#8A5CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8A5CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A5CA2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A5CA2#FFFFFF#000000##FFFFFF
##8A5CA21.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F6CA5
Deuteranopia (green-blind)
#5A6FA0
Tritanopia (blue-blind)
#886677
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a5ca2;
/* rgb */ color: rgb(138, 92, 162);
/* oklch */ color: oklch(55.2% 0.116 313.3);
Tailwind
colors: {
  custom: {
    50: '#ad8bbe',
    500: '#8a5ca2',
    950: '#000000',
  },
}
SCSS
$custom: #8a5ca2;
$custom-light: #ad8bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a5ca2",
  "rgb": {
    "r": 138,
    "g": 92,
    "b": 162
  },
  "hsl": {
    "h": 279.429,
    "s": 27.559,
    "l": 49.804
  },
  "oklch": {
    "l": 0.55206,
    "c": 0.11643,
    "h": 313.3
  },
  "luminance": 0.15666
}

Semantic roles & 50–950 ramp

primary
#8A5CA2
secondary
#A8BD9D
accent
#C46485
background
#FAF8FB
surface
#F4F0F6
border
#CECBD0
text
#100C12
muted
#7F7D81

Preview Lab

Preview with #8A5CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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