#7228B8#7228B8

#7228B8 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.7% C 0.209 H 301.9°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7228B8
RGBrgb(114, 40, 184)
HSLhsl(271, 64%, 44%)
HSVhsv(271, 78%, 72%)
CMYKcmyk(38%, 78.3%, 0%, 27.8%)
CIE-LABlab(35.11, 57.74, -62.08)
CIE-LCHlch(35.11, 84.79, 312.93°)
OKLaboklab(46.69% 0.1103 -0.1773)
OKLCHoklch(46.69% 0.209 301.9)
XYZxyz(16.3479, 8.5556, 46.1282)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228B8 #6EB828
analogous
#2A28B8 #7228B8 #B828B6
triadic
#7228B8 #B87228 #28B872
tetradic
#7228B8 #B82A28 #6EB828 #28B6B8
square
#7228B8 #B82A28 #6EB828 #28B6B8
split-complementary
#7228B8 #B6B828 #28B82A
monochromatic
#341253 #531D86 #7228B8 #9146D7 #AF79E2

Accessibility & contrast

On white

7.75
#7228B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7228B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7228B8
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7228B8#FFFFFF#000000##FFFFFF
##7228B81.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BC
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#634F70
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7228b8;
/* rgb */ color: rgb(114, 40, 184);
/* oklch */ color: oklch(46.7% 0.209 301.9);
Tailwind
colors: {
  custom: {
    50: '#a16bce',
    500: '#7228b8',
    950: '#000000',
  },
}
SCSS
$custom: #7228b8;
$custom-light: #a16bce;
$custom-dark: #000000;
JSON
{
  "hex": "#7228b8",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 184
  },
  "hsl": {
    "h": 270.833,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46691,
    "c": 0.20878,
    "h": 301.9
  },
  "luminance": 0.08556
}

Semantic roles & 50–950 ramp

primary
#7228B8
secondary
#9DCA72
accent
#E74192
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7228B8

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

Preview Lab → · Contrast checker → · Palette generator →

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