#7228AA#7228AA

#7228AA is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.5% C 0.195 H 305.7°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7228AA
RGBrgb(114, 40, 170)
HSLhsl(274, 62%, 41%)
HSVhsv(274, 76%, 67%)
CMYKcmyk(32.9%, 76.5%, 0%, 33.3%)
CIE-LABlab(33.98, 54.49, -55.60)
CIE-LCHlch(33.98, 77.85, 314.43°)
OKLaboklab(45.54% 0.1138 -0.1582)
OKLCHoklch(45.54% 0.195 305.7)
XYZxyz(14.9523, 7.9974, 38.7784)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228AA #60AA28
analogous
#3128AA #7228AA #AA28A1
triadic
#7228AA #AA7228 #28AA72
tetradic
#7228AA #AA3128 #60AA28 #28A1AA
square
#7228AA #AA3128 #60AA28 #28A1AA
split-complementary
#7228AA #A1AA28 #28AA31
monochromatic
#301147 #511C78 #7228AA #923ED2 #AE6FDD

Accessibility & contrast

On white

8.08
#7228AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7228AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7228AA#FFFFFF#000000##FFFFFF
##7228AA1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAE
Deuteranopia (green-blind)
#0050A7
Tritanopia (blue-blind)
#684968
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7228aa;
/* rgb */ color: rgb(114, 40, 170);
/* oklch */ color: oklch(45.5% 0.195 305.7);
Tailwind
colors: {
  custom: {
    50: '#a06ac4',
    500: '#7228aa',
    950: '#000000',
  },
}
SCSS
$custom: #7228aa;
$custom-light: #a06ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#7228aa",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 274.154,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45541,
    "c": 0.19486,
    "h": 305.7
  },
  "luminance": 0.07997
}

Semantic roles & 50–950 ramp

primary
#7228AA
secondary
#91C46A
accent
#E54389
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7228AA

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

Preview Lab → · Contrast checker → · Palette generator →

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