#8731C8#8731C8

#8731C8 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.4% C 0.220 H 305.7°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#8731C8
RGBrgb(135, 49, 200)
HSLhsl(274, 61%, 49%)
HSVhsv(274, 76%, 78%)
CMYKcmyk(32.5%, 75.5%, 0%, 21.6%)
CIE-LABlab(40.44, 61.44, -62.67)
CIE-LCHlch(40.44, 87.76, 314.43°)
OKLaboklab(51.42% 0.1284 -0.1783)
OKLCHoklch(51.42% 0.22 305.7)
XYZxyz(21.5130, 11.5178, 55.7222)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731C8 #72C831
analogous
#3B31C8 #8731C8 #C831BE
triadic
#8731C8 #C88731 #31C887
tetradic
#8731C8 #C83B31 #72C831 #31BEC8
square
#8731C8 #C83B31 #72C831 #31BEC8
split-complementary
#8731C8 #BEC831 #31C83B
monochromatic
#451966 #662597 #8731C8 #A45FD8 #C090E4

Accessibility & contrast

On white

6.36
#8731C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8731C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731C8
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731C8#FFFFFF#000000##FFFFFF
##8731C81.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0060C5
Tritanopia (blue-blind)
#7B577B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8731c8;
/* rgb */ color: rgb(135, 49, 200);
/* oklch */ color: oklch(51.4% 0.220 305.7);
Tailwind
colors: {
  custom: {
    50: '#b072da',
    500: '#8731c8',
    950: '#000000',
  },
}
SCSS
$custom: #8731c8;
$custom-light: #b072da;
$custom-dark: #000000;
JSON
{
  "hex": "#8731c8",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 274.172,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51424,
    "c": 0.21972,
    "h": 305.7
  },
  "luminance": 0.11518
}

Semantic roles & 50–950 ramp

primary
#8731C8
secondary
#A5CE86
accent
#E44489
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #8731C8

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

Preview Lab → · Contrast checker → · Palette generator →

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