#8A60B2#8A60B2

#8A60B2 is a mid, vivid violet. Relative luminance 0.170; OKLCH L 56.7% C 0.129 H 306.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8A60B2
RGBrgb(138, 96, 178)
HSLhsl(271, 35%, 54%)
HSVhsv(271, 46%, 70%)
CMYKcmyk(22.5%, 46.1%, 0%, 30.2%)
CIE-LABlab(48.24, 33.32, -37.32)
CIE-LCHlch(48.24, 50.03, 311.75°)
OKLaboklab(56.74% 0.0767 -0.1042)
OKLCHoklch(56.74% 0.129 306.3)
XYZxyz(22.6984, 16.9835, 44.1932)
Luminance0.1698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A60B2 #88B260
analogous
#6160B2 #8A60B2 #B260B1
triadic
#8A60B2 #B28A60 #60B28A
tetradic
#8A60B2 #B26160 #88B260 #60B1B2
square
#8A60B2 #B26160 #88B260 #60B1B2
split-complementary
#8A60B2 #B1B260 #60B261
monochromatic
#4C3166 #6B458F #8A60B2 #A889C6 #C7B2DA

Accessibility & contrast

On white

4.78
#8A60B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#8A60B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A60B2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A60B2#FFFFFF#000000##FFFFFF
##8A60B21.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B71B5
Deuteranopia (green-blind)
#5673B0
Tritanopia (blue-blind)
#846E80
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8a60b2;
/* rgb */ color: rgb(138, 96, 178);
/* oklch */ color: oklch(56.7% 0.129 306.3);
Tailwind
colors: {
  custom: {
    50: '#ae8ec9',
    500: '#8a60b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a60b2;
$custom-light: #ae8ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a60b2",
  "rgb": {
    "r": 138,
    "g": 96,
    "b": 178
  },
  "hsl": {
    "h": 270.732,
    "s": 34.746,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56741,
    "c": 0.12935,
    "h": 306.3
  },
  "luminance": 0.16983
}

Semantic roles & 50–950 ramp

primary
#8A60B2
secondary
#B6C8A5
accent
#CB5D93
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A60B2

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

Preview Lab → · Contrast checker → · Palette generator →

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