#8C31C8#8C31C8

#8C31C8 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 52.0% C 0.221 H 307.7°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#8C31C8
RGBrgb(140, 49, 200)
HSLhsl(276, 61%, 49%)
HSVhsv(276, 76%, 78%)
CMYKcmyk(30%, 75.5%, 0%, 21.6%)
CIE-LABlab(41.12, 62.33, -61.52)
CIE-LCHlch(41.12, 87.58, 315.37°)
OKLaboklab(52.05% 0.1352 -0.1748)
OKLCHoklch(52.05% 0.221 307.7)
XYZxyz(22.3367, 11.9425, 55.7608)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C31C8 #6DC831
analogous
#4131C8 #8C31C8 #C831B9
triadic
#8C31C8 #C88C31 #31C88C
tetradic
#8C31C8 #C84131 #6DC831 #31B9C8
square
#8C31C8 #C84131 #6DC831 #31B9C8
split-complementary
#8C31C8 #B9C831 #31C841
monochromatic
#471966 #6A2597 #8C31C8 #A85FD8 #C290E4

Accessibility & contrast

On white

6.20
#8C31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8C31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C31C8
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C31C8#FFFFFF#000000##FFFFFF
##8C31C81.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0062C5
Tritanopia (blue-blind)
#82567B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8c31c8;
/* rgb */ color: rgb(140, 49, 200);
/* oklch */ color: oklch(52.0% 0.221 307.7);
Tailwind
colors: {
  custom: {
    50: '#b373da',
    500: '#8c31c8',
    950: '#000000',
  },
}
SCSS
$custom: #8c31c8;
$custom-light: #b373da;
$custom-dark: #000000;
JSON
{
  "hex": "#8c31c8",
  "rgb": {
    "r": 140,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 276.159,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5205,
    "c": 0.22094,
    "h": 307.7
  },
  "luminance": 0.11942
}

Semantic roles & 50–950 ramp

primary
#8C31C8
secondary
#A3CE86
accent
#E44484
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8C31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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