#7228AE#7228AE

#7228AE is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.9% C 0.199 H 304.6°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7228AE
RGBrgb(114, 40, 174)
HSLhsl(273, 63%, 42%)
HSVhsv(273, 77%, 68%)
CMYKcmyk(34.5%, 77%, 0%, 31.8%)
CIE-LABlab(34.30, 55.42, -57.47)
CIE-LCHlch(34.30, 79.84, 313.96°)
OKLaboklab(45.86% 0.1128 -0.1637)
OKLCHoklch(45.86% 0.199 304.6)
XYZxyz(15.3365, 8.1511, 40.8015)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228AE #64AE28
analogous
#2F28AE #7228AE #AE28A7
triadic
#7228AE #AE7228 #28AE72
tetradic
#7228AE #AE2F28 #64AE28 #28A7AE
square
#7228AE #AE2F28 #64AE28 #28A7AE
split-complementary
#7228AE #A7AE28 #28AE2F
monochromatic
#31114A #511D7C #7228AE #9140D3 #AE72DF

Accessibility & contrast

On white

7.98
#7228AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7228AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7228AE#FFFFFF#000000##FFFFFF
##7228AE1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#664A6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7228ae;
/* rgb */ color: rgb(114, 40, 174);
/* oklch */ color: oklch(45.9% 0.199 304.6);
Tailwind
colors: {
  custom: {
    50: '#a06ac7',
    500: '#7228ae',
    950: '#000000',
  },
}
SCSS
$custom: #7228ae;
$custom-light: #a06ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#7228ae",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 273.134,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45864,
    "c": 0.19884,
    "h": 304.6
  },
  "luminance": 0.08151
}

Semantic roles & 50–950 ramp

primary
#7228AE
secondary
#94C66C
accent
#E6428B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7228AE

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

Preview Lab → · Contrast checker → · Palette generator →

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