#7228A7#7228A7

#7228A7 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.192 H 306.6°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7228A7
RGBrgb(114, 40, 167)
HSLhsl(275, 61%, 41%)
HSVhsv(275, 76%, 65%)
CMYKcmyk(31.7%, 76%, 0%, 34.5%)
CIE-LABlab(33.74, 53.81, -54.18)
CIE-LCHlch(33.74, 76.36, 314.80°)
OKLaboklab(45.3% 0.1144 -0.154)
OKLCHoklch(45.3% 0.192 306.6)
XYZxyz(14.6718, 7.8852, 37.3008)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228A7 #5DA728
analogous
#3328A7 #7228A7 #A7289C
triadic
#7228A7 #A77228 #28A772
tetradic
#7228A7 #A73328 #5DA728 #289CA7
square
#7228A7 #A73328 #5DA728 #289CA7
split-complementary
#7228A7 #9CA728 #28A733
monochromatic
#2F1044 #501C76 #7228A7 #923CD0 #AE6DDC

Accessibility & contrast

On white

8.15
#7228A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7228A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7228A7
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7228A7#FFFFFF#000000##FFFFFF
##7228A71.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#0050A4
Tritanopia (blue-blind)
#694766
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7228a7;
/* rgb */ color: rgb(114, 40, 167);
/* oklch */ color: oklch(45.3% 0.192 306.6);
Tailwind
colors: {
  custom: {
    50: '#a06ac2',
    500: '#7228a7',
    950: '#000000',
  },
}
SCSS
$custom: #7228a7;
$custom-light: #a06ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#7228a7",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 274.961,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.45302,
    "c": 0.19187,
    "h": 306.6
  },
  "luminance": 0.07885
}

Semantic roles & 50–950 ramp

primary
#7228A7
secondary
#8EC368
accent
#E44387
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #7228A7

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

Preview Lab → · Contrast checker → · Palette generator →

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