#8228CD#8228CD

#8228CD is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.4% C 0.232 H 303.3°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#8228CD
RGBrgb(130, 40, 205)
HSLhsl(273, 67%, 48%)
HSVhsv(273, 80%, 80%)
CMYKcmyk(36.6%, 80.5%, 0%, 19.6%)
CIE-LABlab(39.02, 65.02, -67.91)
CIE-LCHlch(39.02, 94.02, 313.76°)
OKLaboklab(50.41% 0.1273 -0.1938)
OKLCHoklch(50.41% 0.232 303.3)
XYZxyz(20.9816, 10.6712, 58.7001)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8228CD #73CD28
analogous
#2F28CD #8228CD #CD28C5
triadic
#8228CD #CD8228 #28CD82
tetradic
#8228CD #CD2F28 #73CD28 #28C5CD
square
#8228CD #CD2F28 #73CD28 #28C5CD
split-complementary
#8228CD #C5CD28 #28CD2F
monochromatic
#411467 #621E9A #8228CD #9F54DE #BC88E8

Accessibility & contrast

On white

6.70
#8228CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8228CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8228CD
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8228CD#FFFFFF#000000##FFFFFF
##8228CD1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD1
Deuteranopia (green-blind)
#005BCA
Tritanopia (blue-blind)
#72567C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8228cd;
/* rgb */ color: rgb(130, 40, 205);
/* oklch */ color: oklch(50.4% 0.232 303.3);
Tailwind
colors: {
  custom: {
    50: '#ad6edd',
    500: '#8228cd',
    950: '#000000',
  },
}
SCSS
$custom: #8228cd;
$custom-light: #ad6edd;
$custom-dark: #000000;
JSON
{
  "hex": "#8228cd",
  "rgb": {
    "r": 130,
    "g": 40,
    "b": 205
  },
  "hsl": {
    "h": 272.727,
    "s": 67.347,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50412,
    "c": 0.2319,
    "h": 303.3
  },
  "luminance": 0.10671
}

Semantic roles & 50–950 ramp

primary
#8228CD
secondary
#A5D180
accent
#EA3E8C
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #8228CD

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

Preview Lab → · Contrast checker → · Palette generator →

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