#8228C6#8228C6

#8228C6 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.8% C 0.225 H 305.0°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#8228C6
RGBrgb(130, 40, 198)
HSLhsl(274, 66%, 47%)
HSVhsv(274, 80%, 78%)
CMYKcmyk(34.3%, 79.8%, 0%, 22.4%)
CIE-LABlab(38.45, 63.48, -64.78)
CIE-LCHlch(38.45, 90.69, 314.42°)
OKLaboklab(49.84% 0.1293 -0.1846)
OKLCHoklch(49.84% 0.225 305)
XYZxyz(20.1554, 10.3407, 54.3493)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8228C6 #6CC628
analogous
#3328C6 #8228C6 #C628BB
triadic
#8228C6 #C68228 #28C682
tetradic
#8228C6 #C63328 #6CC628 #28BBC6
square
#8228C6 #C63328 #6CC628 #28BBC6
split-complementary
#8228C6 #BBC628 #28C633
monochromatic
#3F1360 #611E93 #8228C6 #9F50DC #BB83E6

Accessibility & contrast

On white

6.84
#8228C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8228C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8228C6
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8228C6#FFFFFF#000000##FFFFFF
##8228C61.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CA
Deuteranopia (green-blind)
#005BC3
Tritanopia (blue-blind)
#755378
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8228c6;
/* rgb */ color: rgb(130, 40, 198);
/* oklch */ color: oklch(49.8% 0.225 305.0);
Tailwind
colors: {
  custom: {
    50: '#ad6dd8',
    500: '#8228c6',
    950: '#000000',
  },
}
SCSS
$custom: #8228c6;
$custom-light: #ad6dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8228c6",
  "rgb": {
    "r": 130,
    "g": 40,
    "b": 198
  },
  "hsl": {
    "h": 274.177,
    "s": 66.387,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49836,
    "c": 0.22538,
    "h": 305
  },
  "luminance": 0.10341
}

Semantic roles & 50–950 ramp

primary
#8228C6
secondary
#9FCF7B
accent
#E93E88
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #8228C6

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

Preview Lab → · Contrast checker → · Palette generator →

#8228C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva