#8227B1#8227B1

#8227B1 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.207 H 310.8°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#8227B1
RGBrgb(130, 39, 177)
HSLhsl(280, 64%, 42%)
HSVhsv(280, 78%, 69%)
CMYKcmyk(26.6%, 78%, 0%, 30.6%)
CIE-LABlab(36.69, 59.30, -55.27)
CIE-LCHlch(36.69, 81.06, 317.02°)
OKLaboklab(48.1% 0.1351 -0.1567)
OKLCHoklch(48.1% 0.207 310.8)
XYZxyz(17.8657, 9.3716, 42.4542)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8227B1 #56B127
analogous
#3D27B1 #8227B1 #B1279B
triadic
#8227B1 #B18227 #27B182
tetradic
#8227B1 #B13D27 #56B127 #279BB1
square
#8227B1 #B13D27 #56B127 #279BB1
split-complementary
#8227B1 #9BB127 #27B13D
monochromatic
#38114D #5D1C7F #8227B1 #A240D5 #BB72E0

Accessibility & contrast

On white

7.31
#8227B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8227B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8227B1
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8227B1#FFFFFF#000000##FFFFFF
##8227B11.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8227b1;
/* rgb */ color: rgb(130, 39, 177);
/* oklch */ color: oklch(48.1% 0.207 310.8);
Tailwind
colors: {
  custom: {
    50: '#ab6cc9',
    500: '#8227b1',
    950: '#000000',
  },
}
SCSS
$custom: #8227b1;
$custom-light: #ab6cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#8227b1",
  "rgb": {
    "r": 130,
    "g": 39,
    "b": 177
  },
  "hsl": {
    "h": 279.565,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48096,
    "c": 0.20687,
    "h": 310.8
  },
  "luminance": 0.09371
}

Semantic roles & 50–950 ramp

primary
#8227B1
secondary
#8BC76D
accent
#E74179
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8227B1

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

Preview Lab → · Contrast checker → · Palette generator →

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