#8228C5#8228C5

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

Color values

HEX#8228C5
RGBrgb(130, 40, 197)
HSLhsl(274, 66%, 46%)
HSVhsv(274, 80%, 77%)
CMYKcmyk(34%, 79.7%, 0%, 22.7%)
CIE-LABlab(38.37, 63.26, -64.32)
CIE-LCHlch(38.37, 90.22, 314.52°)
OKLaboklab(49.75% 0.1295 -0.1833)
OKLCHoklch(49.75% 0.224 305.2)
XYZxyz(20.0405, 10.2948, 53.7438)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8228C5 #6BC528
analogous
#3428C5 #8228C5 #C528BA
triadic
#8228C5 #C58228 #28C582
tetradic
#8228C5 #C53428 #6BC528 #28BAC5
square
#8228C5 #C53428 #6BC528 #28BAC5
split-complementary
#8228C5 #BAC528 #28C534
monochromatic
#3F135F #601E92 #8228C5 #9F4FDB #BB82E6

Accessibility & contrast

On white

6.86
#8228C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8228C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8228C5
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8228C5#FFFFFF#000000##FFFFFF
##8228C51.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#005AC2
Tritanopia (blue-blind)
#755277
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8228c5;
/* rgb */ color: rgb(130, 40, 197);
/* oklch */ color: oklch(49.8% 0.224 305.2);
Tailwind
colors: {
  custom: {
    50: '#ad6dd8',
    500: '#8228c5',
    950: '#000000',
  },
}
SCSS
$custom: #8228c5;
$custom-light: #ad6dd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8228c5",
  "rgb": {
    "r": 130,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 274.395,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49754,
    "c": 0.22445,
    "h": 305.2
  },
  "luminance": 0.10295
}

Semantic roles & 50–950 ramp

primary
#8228C5
secondary
#9ECE7A
accent
#E93F87
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110815
muted
#807A83

Preview Lab

Preview with #8228C5

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

Preview Lab → · Contrast checker → · Palette generator →

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