#8731D4#8731D4

#8731D4 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.4% C 0.231 H 302.9°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#8731D4
RGBrgb(135, 49, 212)
HSLhsl(272, 65%, 51%)
HSVhsv(272, 77%, 83%)
CMYKcmyk(36.3%, 76.9%, 0%, 16.9%)
CIE-LABlab(41.38, 64.13, -68.08)
CIE-LCHlch(41.38, 93.53, 313.29°)
OKLaboklab(52.37% 0.1256 -0.1942)
OKLCHoklch(52.37% 0.231 302.9)
XYZxyz(22.9708, 12.1010, 63.4001)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731D4 #7ED431
analogous
#3531D4 #8731D4 #D431D0
triadic
#8731D4 #D48731 #31D487
tetradic
#8731D4 #D43531 #7ED431 #31D0D4
square
#8731D4 #D43531 #7ED431 #31D0D4
split-complementary
#8731D4 #D0D431 #31D435
monochromatic
#481873 #6823A5 #8731D4 #A464DF #C296E9

Accessibility & contrast

On white

6.14
#8731D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#8731D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731D4
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731D4#FFFFFF#000000##FFFFFF
##8731D41.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D8
Deuteranopia (green-blind)
#0061D1
Tritanopia (blue-blind)
#775C82
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8731d4;
/* rgb */ color: rgb(135, 49, 212);
/* oklch */ color: oklch(52.4% 0.231 302.9);
Tailwind
colors: {
  custom: {
    50: '#b173e2',
    500: '#8731d4',
    950: '#000000',
  },
}
SCSS
$custom: #8731d4;
$custom-light: #b173e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8731d4",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 212
  },
  "hsl": {
    "h": 271.656,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52373,
    "c": 0.2313,
    "h": 302.9
  },
  "luminance": 0.12101
}

Semantic roles & 50–950 ramp

primary
#8731D4
secondary
#AED48C
accent
#E83F8F
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110916
muted
#807B84

Preview Lab

Preview with #8731D4

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

Preview Lab → · Contrast checker → · Palette generator →

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