#8228B2#8228B2

#8228B2 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.207 H 310.4°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#8228B2
RGBrgb(130, 40, 178)
HSLhsl(279, 63%, 43%)
HSVhsv(279, 78%, 70%)
CMYKcmyk(27%, 77.5%, 0%, 30.2%)
CIE-LABlab(36.89, 59.16, -55.54)
CIE-LCHlch(36.89, 81.14, 316.81°)
OKLaboklab(48.26% 0.134 -0.1575)
OKLCHoklch(48.26% 0.207 310.4)
XYZxyz(17.9990, 9.4782, 42.9922)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8228B2 #58B228
analogous
#3D28B2 #8228B2 #B2289D
triadic
#8228B2 #B28228 #28B282
tetradic
#8228B2 #B23D28 #58B228 #289DB2
square
#8228B2 #B23D28 #58B228 #289DB2
split-complementary
#8228B2 #9DB228 #28B23D
monochromatic
#39124E #5E1D80 #8228B2 #A243D5 #BB75E0

Accessibility & contrast

On white

7.25
#8228B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8228B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8228B2
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8228B2#FFFFFF#000000##FFFFFF
##8228B21.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0058AF
Tritanopia (blue-blind)
#7B4A6C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8228b2;
/* rgb */ color: rgb(130, 40, 178);
/* oklch */ color: oklch(48.3% 0.207 310.4);
Tailwind
colors: {
  custom: {
    50: '#ab6cca',
    500: '#8228b2',
    950: '#000000',
  },
}
SCSS
$custom: #8228b2;
$custom-light: #ab6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#8228b2",
  "rgb": {
    "r": 130,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 279.13,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.48259,
    "c": 0.20679,
    "h": 310.4
  },
  "luminance": 0.09478
}

Semantic roles & 50–950 ramp

primary
#8228B2
secondary
#8DC76F
accent
#E6417B
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8228B2

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

Preview Lab → · Contrast checker → · Palette generator →

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