#7228A8#7228A8

#7228A8 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.4% C 0.193 H 306.3°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7228A8
RGBrgb(114, 40, 168)
HSLhsl(275, 62%, 41%)
HSVhsv(275, 76%, 66%)
CMYKcmyk(32.1%, 76.2%, 0%, 34.1%)
CIE-LABlab(33.82, 54.04, -54.65)
CIE-LCHlch(33.82, 76.86, 314.68°)
OKLaboklab(45.38% 0.1142 -0.1554)
OKLCHoklch(45.38% 0.193 306.3)
XYZxyz(14.7646, 7.9223, 37.7895)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228A8 #5EA828
analogous
#3228A8 #7228A8 #A8289E
triadic
#7228A8 #A87228 #28A872
tetradic
#7228A8 #A83228 #5EA828 #289EA8
square
#7228A8 #A83228 #5EA828 #289EA8
split-complementary
#7228A8 #9EA828 #28A832
monochromatic
#2F1045 #501C77 #7228A8 #923DD1 #AE6EDC

Accessibility & contrast

On white

8.13
#7228A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##7228A8#FFFFFF#000000##FFFFFF
##7228A81.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0050A5
Tritanopia (blue-blind)
#684867
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7228a8;
/* rgb */ color: rgb(114, 40, 168);
/* oklch */ color: oklch(45.4% 0.193 306.3);
Tailwind
colors: {
  custom: {
    50: '#a06ac3',
    500: '#7228a8',
    950: '#000000',
  },
}
SCSS
$custom: #7228a8;
$custom-light: #a06ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#7228a8",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 274.688,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45382,
    "c": 0.19288,
    "h": 306.3
  },
  "luminance": 0.07922
}

Semantic roles & 50–950 ramp

primary
#7228A8
secondary
#8FC369
accent
#E54387
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7228A8

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

Preview Lab → · Contrast checker → · Palette generator →

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