#8228B1#8228B1

#8228B1 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.2% C 0.206 H 310.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8228B1
RGBrgb(130, 40, 177)
HSLhsl(279, 63%, 43%)
HSVhsv(279, 77%, 69%)
CMYKcmyk(26.6%, 77.4%, 0%, 30.6%)
CIE-LABlab(36.81, 58.94, -55.06)
CIE-LCHlch(36.81, 80.66, 316.95°)
OKLaboklab(48.18% 0.1342 -0.1561)
OKLCHoklch(48.18% 0.206 310.7)
XYZxyz(17.8990, 9.4382, 42.4653)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8228B1 #57B128
analogous
#3D28B1 #8228B1 #B1289C
triadic
#8228B1 #B18228 #28B182
tetradic
#8228B1 #B13D28 #57B128 #289CB1
square
#8228B1 #B13D28 #57B128 #289CB1
split-complementary
#8228B1 #9CB128 #28B13D
monochromatic
#39114D #5D1D7F #8228B1 #A242D4 #BB74E0

Accessibility & contrast

On white

7.27
#8228B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8228B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8228B1
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8228B1#FFFFFF#000000##FFFFFF
##8228B11.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0058AE
Tritanopia (blue-blind)
#7C496C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8228b1;
/* rgb */ color: rgb(130, 40, 177);
/* oklch */ color: oklch(48.2% 0.206 310.7);
Tailwind
colors: {
  custom: {
    50: '#ab6cc9',
    500: '#8228b1',
    950: '#000000',
  },
}
SCSS
$custom: #8228b1;
$custom-light: #ab6cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8228b1",
  "rgb": {
    "r": 130,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 279.416,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48184,
    "c": 0.20587,
    "h": 310.7
  },
  "luminance": 0.09438
}

Semantic roles & 50–950 ramp

primary
#8228B1
secondary
#8CC76E
accent
#E6427A
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8228B1

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

Preview Lab → · Contrast checker → · Palette generator →

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