#8228BC#8228BC

#8228BC is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 49.0% C 0.216 H 307.6°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8228BC
RGBrgb(130, 40, 188)
HSLhsl(276, 65%, 45%)
HSVhsv(276, 79%, 74%)
CMYKcmyk(30.9%, 78.7%, 0%, 26.3%)
CIE-LABlab(37.65, 61.30, -60.21)
CIE-LCHlch(37.65, 85.92, 315.51°)
OKLaboklab(49.03% 0.1318 -0.1712)
OKLCHoklch(49.03% 0.216 307.6)
XYZxyz(19.0399, 9.8945, 48.4740)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8228BC #62BC28
analogous
#3828BC #8228BC #BC28AC
triadic
#8228BC #BC8228 #28BC82
tetradic
#8228BC #BC3828 #62BC28 #28ACBC
square
#8228BC #BC3828 #62BC28 #28ACBC
split-complementary
#8228BC #ACBC28 #28BC38
monochromatic
#3C1357 #5F1D8A #8228BC #A049D8 #BA7BE3

Accessibility & contrast

On white

7.05
#8228BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8228BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8228BC
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8228BC#FFFFFF#000000##FFFFFF
##8228BC1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C0
Deuteranopia (green-blind)
#0059B9
Tritanopia (blue-blind)
#784E72
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8228bc;
/* rgb */ color: rgb(130, 40, 188);
/* oklch */ color: oklch(49.0% 0.216 307.6);
Tailwind
colors: {
  custom: {
    50: '#ac6dd1',
    500: '#8228bc',
    950: '#000000',
  },
}
SCSS
$custom: #8228bc;
$custom-light: #ac6dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8228bc",
  "rgb": {
    "r": 130,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 276.486,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49034,
    "c": 0.21607,
    "h": 307.6
  },
  "luminance": 0.09894
}

Semantic roles & 50–950 ramp

primary
#8228BC
secondary
#97CB75
accent
#E84082
background
#FBF6FD
surface
#F6ECFA
border
#D0C7D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8228BC

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

Preview Lab → · Contrast checker → · Palette generator →

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