#8A61B2#8A61B2

#8A61B2 is a mid, vivid violet. Relative luminance 0.172; OKLCH L 56.9% C 0.128 H 306.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8A61B2
RGBrgb(138, 97, 178)
HSLhsl(270, 34%, 54%)
HSVhsv(270, 46%, 70%)
CMYKcmyk(22.5%, 45.5%, 0%, 30.2%)
CIE-LABlab(48.47, 32.74, -36.96)
CIE-LCHlch(48.47, 49.37, 311.54°)
OKLaboklab(56.91% 0.0752 -0.1031)
OKLCHoklch(56.91% 0.128 306.1)
XYZxyz(22.7902, 17.1672, 44.2238)
Luminance0.1717 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A61B2 #89B261
analogous
#6261B2 #8A61B2 #B261B2
triadic
#8A61B2 #B28A61 #61B28A
tetradic
#8A61B2 #B26261 #89B261 #61B2B2
square
#8A61B2 #B26261 #89B261 #61B2B2
split-complementary
#8A61B2 #B2B261 #61B262
monochromatic
#4D3267 #6B4690 #8A61B2 #A88AC6 #C7B3DA

Accessibility & contrast

On white

4.74
#8A61B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A61B2
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A61B2#FFFFFF#000000##FFFFFF
##8A61B21.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D72B5
Deuteranopia (green-blind)
#5773B0
Tritanopia (blue-blind)
#846E81
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a61b2;
/* rgb */ color: rgb(138, 97, 178);
/* oklch */ color: oklch(56.9% 0.128 306.1);
Tailwind
colors: {
  custom: {
    50: '#ae8fc9',
    500: '#8a61b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a61b2;
$custom-light: #ae8fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a61b2",
  "rgb": {
    "r": 138,
    "g": 97,
    "b": 178
  },
  "hsl": {
    "h": 270.37,
    "s": 34.468,
    "l": 53.922
  },
  "oklch": {
    "l": 0.56913,
    "c": 0.12765,
    "h": 306.1
  },
  "luminance": 0.17167
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A61B2

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

Preview Lab → · Contrast checker → · Palette generator →

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