#8A71B2#8A71B2

#8A71B2 is a mid, moderate violet. Relative luminance 0.204; OKLCH L 59.8% C 0.100 H 301.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A71B2
RGBrgb(138, 113, 178)
HSLhsl(263, 30%, 57%)
HSVhsv(263, 37%, 70%)
CMYKcmyk(22.5%, 36.5%, 0%, 30.2%)
CIE-LABlab(52.32, 23.39, -30.93)
CIE-LCHlch(52.32, 38.78, 307.10°)
OKLaboklab(59.82% 0.0518 -0.0858)
OKLCHoklch(59.82% 0.1 301.1)
XYZxyz(24.4205, 20.4278, 44.7673)
Luminance0.2043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A71B2 #99B271
analogous
#7179B2 #8A71B2 #AB71B2
triadic
#8A71B2 #B28A71 #71B28A
tetradic
#8A71B2 #B27179 #99B271 #71B2AB
square
#8A71B2 #B27179 #99B271 #71B2AB
split-complementary
#8A71B2 #B2AB71 #79B271
monochromatic
#4F3B6D #6B5195 #8A71B2 #AB99C8 #CBC0DD

Accessibility & contrast

On white

4.13
#8A71B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8A71B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A71B2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A71B2#FFFFFF#000000##000000
##8A71B21.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#627CB5
Deuteranopia (green-blind)
#667DB0
Tritanopia (blue-blind)
#837B89
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a71b2;
/* rgb */ color: rgb(138, 113, 178);
/* oklch */ color: oklch(59.8% 0.100 301.1);
Tailwind
colors: {
  custom: {
    50: '#ad9ac9',
    500: '#8a71b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a71b2;
$custom-light: #ad9ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a71b2",
  "rgb": {
    "r": 138,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 263.077,
    "s": 29.68,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5982,
    "c": 0.1002,
    "h": 301.1
  },
  "luminance": 0.20428
}

Semantic roles & 50–950 ramp

primary
#8A71B2
secondary
#C2CDB2
accent
#C6629F
background
#FAF9FC
surface
#F4F2F8
border
#CECCD1
text
#100E13
muted
#7F7E82

Preview Lab

Preview with #8A71B2

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

Preview Lab → · Contrast checker → · Palette generator →

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