#8731E2#8731E2

#8731E2 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.5% C 0.245 H 299.9°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8731E2
RGBrgb(135, 49, 226)
HSLhsl(269, 75%, 54%)
HSVhsv(269, 78%, 89%)
CMYKcmyk(40.3%, 78.3%, 0%, 11.4%)
CIE-LABlab(42.52, 67.33, -74.24)
CIE-LCHlch(42.52, 100.22, 312.21°)
OKLaboklab(53.52% 0.1219 -0.2123)
OKLCHoklch(53.52% 0.245 299.9)
XYZxyz(24.8140, 12.8382, 73.1075)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8731E2 #8CE231
analogous
#3134E2 #8731E2 #E031E2
triadic
#8731E2 #E28731 #31E287
tetradic
#8731E2 #E23134 #8CE231 #31E2E0
square
#8731E2 #E23134 #8CE231 #31E2E0
split-complementary
#8731E2 #E2E031 #34E231
monochromatic
#4B1386 #691ABB #8731E2 #A667EA #C69CF1

Accessibility & contrast

On white

5.89
#8731E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8731E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8731E2
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8731E2#FFFFFF#000000##FFFFFF
##8731E21.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E7
Deuteranopia (green-blind)
#0063DF
Tritanopia (blue-blind)
#71628A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8731e2;
/* rgb */ color: rgb(135, 49, 226);
/* oklch */ color: oklch(53.5% 0.245 299.9);
Tailwind
colors: {
  custom: {
    50: '#b273ec',
    500: '#8731e2',
    950: '#000000',
  },
}
SCSS
$custom: #8731e2;
$custom-light: #b273ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8731e2",
  "rgb": {
    "r": 135,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 269.153,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53523,
    "c": 0.2448,
    "h": 299.9
  },
  "luminance": 0.12839
}

Semantic roles & 50–950 ramp

primary
#8731E2
secondary
#B8DD92
accent
#F23697
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8731E2

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

Preview Lab → · Contrast checker → · Palette generator →

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