#8231E2#8231E2

#8231E2 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 53.0% C 0.244 H 298.0°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#8231E2
RGBrgb(130, 49, 226)
HSLhsl(267, 75%, 54%)
HSVhsv(267, 78%, 89%)
CMYKcmyk(42.5%, 78.3%, 0%, 11.4%)
CIE-LABlab(41.90, 66.60, -75.28)
CIE-LCHlch(41.90, 100.51, 311.50°)
OKLaboklab(52.95% 0.1147 -0.2155)
OKLCHoklch(52.95% 0.244 298)
XYZxyz(24.0281, 12.4330, 73.0706)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8231E2 #91E231
analogous
#3139E2 #8231E2 #DB31E2
triadic
#8231E2 #E28231 #31E282
tetradic
#8231E2 #E23139 #91E231 #31E2DB
square
#8231E2 #E23139 #91E231 #31E2DB
split-complementary
#8231E2 #E2DB31 #39E231
monochromatic
#471386 #641ABB #8231E2 #A367EA #C39CF1

Accessibility & contrast

On white

6.02
#8231E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8231E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8231E2
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8231E2#FFFFFF#000000##FFFFFF
##8231E21.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E7
Deuteranopia (green-blind)
#0061DF
Tritanopia (blue-blind)
#69628A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8231e2;
/* rgb */ color: rgb(130, 49, 226);
/* oklch */ color: oklch(53.0% 0.244 298.0);
Tailwind
colors: {
  custom: {
    50: '#af73ec',
    500: '#8231e2',
    950: '#000000',
  },
}
SCSS
$custom: #8231e2;
$custom-light: #af73ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8231e2",
  "rgb": {
    "r": 130,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 267.458,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52954,
    "c": 0.24416,
    "h": 298
  },
  "luminance": 0.12433
}

Semantic roles & 50–950 ramp

primary
#8231E2
secondary
#BBDD92
accent
#F2369C
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#110916
muted
#807B84

Preview Lab

Preview with #8231E2

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

Preview Lab → · Contrast checker → · Palette generator →

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