#8A31E8#8A31E8

#8A31E8 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 54.4% C 0.251 H 299.7°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8A31E8
RGBrgb(138, 49, 232)
HSLhsl(269, 80%, 55%)
HSVhsv(269, 79%, 91%)
CMYKcmyk(40.5%, 78.9%, 0%, 9%)
CIE-LABlab(43.40, 69.14, -76.19)
CIE-LCHlch(43.40, 102.88, 312.22°)
OKLaboklab(54.37% 0.1244 -0.2179)
OKLCHoklch(54.37% 0.251 299.7)
XYZxyz(26.1413, 13.4258, 77.5425)
Luminance0.1343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A31E8 #8FE831
analogous
#3134E8 #8A31E8 #E531E8
triadic
#8A31E8 #E88A31 #31E88A
tetradic
#8A31E8 #E83134 #8FE831 #31E8E5
square
#8A31E8 #E83134 #8FE831 #31E8E5
split-complementary
#8A31E8 #E8E531 #34E831
monochromatic
#4E108F #6B16C6 #8A31E8 #A968EE #C99FF4

Accessibility & contrast

On white

5.70
#8A31E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8A31E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A31E8
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A31E8#FFFFFF#000000##FFFFFF
##8A31E81.005.703.695.70
#FFFFFF5.701.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066ED
Deuteranopia (green-blind)
#0065E5
Tritanopia (blue-blind)
#73648D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a31e8;
/* rgb */ color: rgb(138, 49, 232);
/* oklch */ color: oklch(54.4% 0.251 299.7);
Tailwind
colors: {
  custom: {
    50: '#b474f1',
    500: '#8a31e8',
    950: '#000000',
  },
}
SCSS
$custom: #8a31e8;
$custom-light: #b474f1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a31e8",
  "rgb": {
    "r": 138,
    "g": 49,
    "b": 232
  },
  "hsl": {
    "h": 269.18,
    "s": 79.913,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54371,
    "c": 0.25096,
    "h": 299.7
  },
  "luminance": 0.13426
}

Semantic roles & 50–950 ramp

primary
#8A31E8
secondary
#BBE194
accent
#F63197
background
#FBF7FE
surface
#F7EDFD
border
#D0C8D5
text
#120917
muted
#817B85

Preview Lab

Preview with #8A31E8

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

Preview Lab → · Contrast checker → · Palette generator →

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