#7228C4#7228C4

#7228C4 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.7% C 0.221 H 299.0°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7228C4
RGBrgb(114, 40, 196)
HSLhsl(268, 66%, 46%)
HSVhsv(268, 80%, 77%)
CMYKcmyk(41.8%, 79.6%, 0%, 23.1%)
CIE-LABlab(36.14, 60.58, -67.47)
CIE-LCHlch(36.14, 90.67, 311.92°)
OKLaboklab(47.72% 0.1069 -0.1931)
OKLCHoklch(47.72% 0.221 299)
XYZxyz(17.6595, 9.0803, 53.0361)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228C4 #7AC428
analogous
#282CC4 #7228C4 #C028C4
triadic
#7228C4 #C47228 #28C472
tetradic
#7228C4 #C4282C #7AC428 #28C4C0
square
#7228C4 #C4282C #7AC428 #28C4C0
split-complementary
#7228C4 #C4C028 #2CC428
monochromatic
#37135E #541E91 #7228C4 #914EDB #B181E5

Accessibility & contrast

On white

7.46
#7228C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7228C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7228C4#FFFFFF#000000##FFFFFF
##7228C41.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C8
Deuteranopia (green-blind)
#0053C1
Tritanopia (blue-blind)
#5E5477
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7228c4;
/* rgb */ color: rgb(114, 40, 196);
/* oklch */ color: oklch(47.7% 0.221 299.0);
Tailwind
colors: {
  custom: {
    50: '#a26bd7',
    500: '#7228c4',
    950: '#000000',
  },
}
SCSS
$custom: #7228c4;
$custom-light: #a26bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7228c4",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 268.462,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4772,
    "c": 0.22069,
    "h": 299
  },
  "luminance": 0.09081
}

Semantic roles & 50–950 ramp

primary
#7228C4
secondary
#A6CE7A
accent
#E93F98
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100715
muted
#7F7A83

Preview Lab

Preview with #7228C4

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

Preview Lab → · Contrast checker → · Palette generator →

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