#7228C5#7228C5

#7228C5 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.8% C 0.222 H 298.7°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7228C5
RGBrgb(114, 40, 197)
HSLhsl(268, 66%, 46%)
HSVhsv(268, 80%, 77%)
CMYKcmyk(42.1%, 79.7%, 0%, 22.7%)
CIE-LABlab(36.23, 60.81, -67.91)
CIE-LCHlch(36.23, 91.16, 311.84°)
OKLaboklab(47.81% 0.1066 -0.1944)
OKLCHoklch(47.81% 0.222 298.7)
XYZxyz(17.7737, 9.1259, 53.6376)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228C5 #7BC528
analogous
#282DC5 #7228C5 #C128C5
triadic
#7228C5 #C57228 #28C572
tetradic
#7228C5 #C5282D #7BC528 #28C5C1
square
#7228C5 #C5282D #7BC528 #28C5C1
split-complementary
#7228C5 #C5C128 #2DC528
monochromatic
#37135F #551E92 #7228C5 #914FDB #B182E6

Accessibility & contrast

On white

7.43
#7228C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7228C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7228C5#FFFFFF#000000##FFFFFF
##7228C51.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C9
Deuteranopia (green-blind)
#0054C2
Tritanopia (blue-blind)
#5D5477
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7228c5;
/* rgb */ color: rgb(114, 40, 197);
/* oklch */ color: oklch(47.8% 0.222 298.7);
Tailwind
colors: {
  custom: {
    50: '#a26bd8',
    500: '#7228c5',
    950: '#000000',
  },
}
SCSS
$custom: #7228c5;
$custom-light: #a26bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7228c5",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 268.28,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47807,
    "c": 0.22167,
    "h": 298.7
  },
  "luminance": 0.09126
}

Semantic roles & 50–950 ramp

primary
#7228C5
secondary
#A7CE7A
accent
#E93F99
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100715
muted
#7F7A83

Preview Lab

Preview with #7228C5

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

Preview Lab → · Contrast checker → · Palette generator →

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