#8A61B1#8A61B1

#8A61B1 is a mid, vivid violet. Relative luminance 0.171; OKLCH L 56.9% C 0.126 H 306.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8A61B1
RGBrgb(138, 97, 177)
HSLhsl(271, 34%, 54%)
HSVhsv(271, 45%, 69%)
CMYKcmyk(22%, 45.2%, 0%, 30.6%)
CIE-LABlab(48.42, 32.50, -36.45)
CIE-LCHlch(48.42, 48.84, 311.72°)
OKLaboklab(56.86% 0.0751 -0.1017)
OKLCHoklch(56.86% 0.126 306.4)
XYZxyz(22.6901, 17.1272, 43.6970)
Luminance0.1713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A61B1 #88B161
analogous
#6261B1 #8A61B1 #B161B0
triadic
#8A61B1 #B18A61 #61B18A
tetradic
#8A61B1 #B16261 #88B161 #61B0B1
square
#8A61B1 #B16261 #88B161 #61B0B1
split-complementary
#8A61B1 #B0B161 #61B162
monochromatic
#4C3265 #6B468E #8A61B1 #A88AC5 #C7B3D9

Accessibility & contrast

On white

4.75
#8A61B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#8A61B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A61B1
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A61B1#FFFFFF#000000##FFFFFF
##8A61B11.004.754.434.75
#FFFFFF4.751.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D72B4
Deuteranopia (green-blind)
#5773AF
Tritanopia (blue-blind)
#846E80
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a61b1;
/* rgb */ color: rgb(138, 97, 177);
/* oklch */ color: oklch(56.9% 0.126 306.4);
Tailwind
colors: {
  custom: {
    50: '#ae8fc8',
    500: '#8a61b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a61b1;
$custom-light: #ae8fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a61b1",
  "rgb": {
    "r": 138,
    "g": 97,
    "b": 177
  },
  "hsl": {
    "h": 270.75,
    "s": 33.898,
    "l": 53.725
  },
  "oklch": {
    "l": 0.56859,
    "c": 0.12638,
    "h": 306.4
  },
  "luminance": 0.17127
}

Semantic roles & 50–950 ramp

primary
#8A61B1
secondary
#B6C8A6
accent
#CA5E93
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#100C13
muted
#7F7D82

Preview Lab

Preview with #8A61B1

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

Preview Lab → · Contrast checker → · Palette generator →

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