#7228A4#7228A4

#7228A4 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.1% C 0.189 H 307.5°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#7228A4
RGBrgb(114, 40, 164)
HSLhsl(276, 61%, 40%)
HSVhsv(276, 76%, 64%)
CMYKcmyk(30.5%, 75.6%, 0%, 35.7%)
CIE-LABlab(33.51, 53.13, -52.75)
CIE-LCHlch(33.51, 74.87, 315.20°)
OKLaboklab(45.07% 0.115 -0.1498)
OKLCHoklch(45.07% 0.189 307.5)
XYZxyz(14.3976, 7.7755, 35.8571)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228A4 #5AA428
analogous
#3428A4 #7228A4 #A42898
triadic
#7228A4 #A47228 #28A472
tetradic
#7228A4 #A43428 #5AA428 #2898A4
square
#7228A4 #A43428 #5AA428 #2898A4
split-complementary
#7228A4 #98A428 #28A434
monochromatic
#2E1042 #501C73 #7228A4 #933ACF #AE6BDB

Accessibility & contrast

On white

8.22
#7228A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7228A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7228A4
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7228A4#FFFFFF#000000##FFFFFF
##7228A41.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#004FA1
Tritanopia (blue-blind)
#6A4664
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7228a4;
/* rgb */ color: rgb(114, 40, 164);
/* oklch */ color: oklch(45.1% 0.189 307.5);
Tailwind
colors: {
  custom: {
    50: '#9f6ac0',
    500: '#7228a4',
    950: '#000000',
  },
}
SCSS
$custom: #7228a4;
$custom-light: #9f6ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7228a4",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 275.806,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.45067,
    "c": 0.1889,
    "h": 307.5
  },
  "luminance": 0.07775
}

Semantic roles & 50–950 ramp

primary
#7228A4
secondary
#8BC166
accent
#E44484
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #7228A4

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

Preview Lab → · Contrast checker → · Palette generator →

#7228A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva