#7228B5#7228B5

#7228B5 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.4% C 0.206 H 302.7°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#7228B5
RGBrgb(114, 40, 181)
HSLhsl(271, 64%, 43%)
HSVhsv(271, 78%, 71%)
CMYKcmyk(37%, 77.9%, 0%, 29%)
CIE-LABlab(34.87, 57.04, -60.71)
CIE-LCHlch(34.87, 83.30, 313.21°)
OKLaboklab(46.44% 0.1111 -0.1732)
OKLCHoklch(46.44% 0.206 302.7)
XYZxyz(16.0367, 8.4312, 44.4896)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228B5 #6BB528
analogous
#2B28B5 #7228B5 #B528B1
triadic
#7228B5 #B57228 #28B572
tetradic
#7228B5 #B52B28 #6BB528 #28B1B5
square
#7228B5 #B52B28 #6BB528 #28B1B5
split-complementary
#7228B5 #B1B528 #28B52B
monochromatic
#331251 #521D83 #7228B5 #9144D6 #AE77E1

Accessibility & contrast

On white

7.82
#7228B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7228B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7228B5
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7228B5#FFFFFF#000000##FFFFFF
##7228B51.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B9
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#644D6E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7228b5;
/* rgb */ color: rgb(114, 40, 181);
/* oklch */ color: oklch(46.4% 0.206 302.7);
Tailwind
colors: {
  custom: {
    50: '#a16bcc',
    500: '#7228b5',
    950: '#000000',
  },
}
SCSS
$custom: #7228b5;
$custom-light: #a16bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7228b5",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 271.489,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4644,
    "c": 0.2058,
    "h": 302.7
  },
  "luminance": 0.08431
}

Semantic roles & 50–950 ramp

primary
#7228B5
secondary
#9AC870
accent
#E74190
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7228B5

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

Preview Lab → · Contrast checker → · Palette generator →

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