#8227BA#8227BA

#8227BA is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.8% C 0.215 H 308.2°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#8227BA
RGBrgb(130, 39, 186)
HSLhsl(277, 65%, 44%)
HSVhsv(277, 79%, 73%)
CMYKcmyk(30.1%, 79%, 0%, 27.1%)
CIE-LABlab(37.38, 61.22, -59.48)
CIE-LCHlch(37.38, 85.36, 315.82°)
OKLaboklab(48.79% 0.1331 -0.1691)
OKLCHoklch(48.79% 0.215 308.2)
XYZxyz(18.7925, 9.7423, 47.3353)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8227BA #5FBA27
analogous
#3927BA #8227BA #BA27A9
triadic
#8227BA #BA8227 #27BA82
tetradic
#8227BA #BA3927 #5FBA27 #27A9BA
square
#8227BA #BA3927 #5FBA27 #27A9BA
split-complementary
#8227BA #A9BA27 #27BA39
monochromatic
#3B1255 #5F1C87 #8227BA #A146D8 #BA79E3

Accessibility & contrast

On white

7.12
#8227BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8227BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8227BA
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8227BA#FFFFFF#000000##FFFFFF
##8227BA1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#794D71
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8227ba;
/* rgb */ color: rgb(130, 39, 186);
/* oklch */ color: oklch(48.8% 0.215 308.2);
Tailwind
colors: {
  custom: {
    50: '#ac6cd0',
    500: '#8227ba',
    950: '#000000',
  },
}
SCSS
$custom: #8227ba;
$custom-light: #ac6cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8227ba",
  "rgb": {
    "r": 130,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 277.143,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48792,
    "c": 0.21516,
    "h": 308.2
  },
  "luminance": 0.09742
}

Semantic roles & 50–950 ramp

primary
#8227BA
secondary
#94CB72
accent
#E84080
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8227BA

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

Preview Lab → · Contrast checker → · Palette generator →

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