#7228BC#7228BC

#7228BC is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.213 H 300.9°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#7228BC
RGBrgb(114, 40, 188)
HSLhsl(270, 65%, 45%)
HSVhsv(270, 79%, 74%)
CMYKcmyk(39.4%, 78.7%, 0%, 26.3%)
CIE-LABlab(35.45, 58.68, -63.89)
CIE-LCHlch(35.45, 86.75, 312.57°)
OKLaboklab(47.03% 0.1092 -0.1826)
OKLCHoklch(47.03% 0.213 300.9)
XYZxyz(16.7731, 8.7257, 48.3678)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228BC #72BC28
analogous
#2828BC #7228BC #BC28BC
triadic
#7228BC #BC7228 #28BC72
tetradic
#7228BC #BC2828 #72BC28 #28BCBC
square
#7228BC #BC2828 #72BC28 #28BCBC
split-complementary
#7228BC #BCBC28 #28BC28
monochromatic
#351357 #531D8A #7228BC #9149D8 #AF7BE3

Accessibility & contrast

On white

7.65
#7228BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7228BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7228BC
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7228BC#FFFFFF#000000##FFFFFF
##7228BC1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C0
Deuteranopia (green-blind)
#0052B9
Tritanopia (blue-blind)
#615072
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7228bc;
/* rgb */ color: rgb(114, 40, 188);
/* oklch */ color: oklch(47.0% 0.213 300.9);
Tailwind
colors: {
  custom: {
    50: '#a16bd1',
    500: '#7228bc',
    950: '#000000',
  },
}
SCSS
$custom: #7228bc;
$custom-light: #a16bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7228bc",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 188
  },
  "hsl": {
    "h": 270,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4703,
    "c": 0.21275,
    "h": 300.9
  },
  "luminance": 0.08726
}

Semantic roles & 50–950 ramp

primary
#7228BC
secondary
#A0CB75
accent
#E84094
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7228BC

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

Preview Lab → · Contrast checker → · Palette generator →

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