#7228AC#7228AC

#7228AC is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.7% C 0.197 H 305.1°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7228AC
RGBrgb(114, 40, 172)
HSLhsl(274, 62%, 42%)
HSVhsv(274, 77%, 67%)
CMYKcmyk(33.7%, 76.7%, 0%, 32.5%)
CIE-LABlab(34.14, 54.95, -56.54)
CIE-LCHlch(34.14, 78.85, 314.19°)
OKLaboklab(45.7% 0.1133 -0.161)
OKLCHoklch(45.7% 0.197 305.1)
XYZxyz(15.1429, 8.0736, 39.7823)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228AC #62AC28
analogous
#3028AC #7228AC #AC28A4
triadic
#7228AC #AC7228 #28AC72
tetradic
#7228AC #AC3028 #62AC28 #28A4AC
square
#7228AC #AC3028 #62AC28 #28A4AC
split-complementary
#7228AC #A4AC28 #28AC30
monochromatic
#301149 #511C7A #7228AC #923FD2 #AE71DE

Accessibility & contrast

On white

8.03
#7228AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7228AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7228AC#FFFFFF#000000##FFFFFF
##7228AC1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0050A9
Tritanopia (blue-blind)
#674969
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7228ac;
/* rgb */ color: rgb(114, 40, 172);
/* oklch */ color: oklch(45.7% 0.197 305.1);
Tailwind
colors: {
  custom: {
    50: '#a06ac6',
    500: '#7228ac',
    950: '#000000',
  },
}
SCSS
$custom: #7228ac;
$custom-light: #a06ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#7228ac",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 273.636,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45702,
    "c": 0.19685,
    "h": 305.1
  },
  "luminance": 0.08074
}

Semantic roles & 50–950 ramp

primary
#7228AC
secondary
#92C56B
accent
#E5428A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7228AC

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

Preview Lab → · Contrast checker → · Palette generator →

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