#8731B2#8731B2

#8731B2 is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.8% C 0.199 H 311.8°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#8731B2
RGBrgb(135, 49, 178)
HSLhsl(280, 57%, 45%)
HSVhsv(280, 72%, 70%)
CMYKcmyk(24.2%, 72.5%, 0%, 30.2%)
CIE-LABlab(38.83, 56.64, -52.36)
CIE-LCHlch(38.83, 77.13, 317.25°)
OKLaboklab(49.78% 0.1323 -0.148)
OKLCHoklch(49.78% 0.199 311.8)
XYZxyz(19.1244, 10.5624, 43.1422)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731B2 #5CB231
analogous
#4731B2 #8731B2 #B2319D
triadic
#8731B2 #B28731 #31B287
tetradic
#8731B2 #B24731 #5CB231 #319DB2
square
#8731B2 #B24731 #5CB231 #319DB2
split-complementary
#8731B2 #9DB231 #31B247
monochromatic
#3E1752 #632482 #8731B2 #A551CF #BE81DC

Accessibility & contrast

On white

6.75
#8731B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8731B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731B2
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731B2#FFFFFF#000000##FFFFFF
##8731B21.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#1F5DAF
Tritanopia (blue-blind)
#824E6F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8731b2;
/* rgb */ color: rgb(135, 49, 178);
/* oklch */ color: oklch(49.8% 0.199 311.8);
Tailwind
colors: {
  custom: {
    50: '#ae71ca',
    500: '#8731b2',
    950: '#000000',
  },
}
SCSS
$custom: #8731b2;
$custom-light: #ae71ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8731b2",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 280,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49784,
    "c": 0.19851,
    "h": 311.8
  },
  "luminance": 0.10562
}

Semantic roles & 50–950 ramp

primary
#8731B2
secondary
#93C579
accent
#E0487B
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8731B2

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

Preview Lab → · Contrast checker → · Palette generator →

#8731B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva