#7228B0#7228B0

#7228B0 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.0% C 0.201 H 304.0°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7228B0
RGBrgb(114, 40, 176)
HSLhsl(273, 63%, 42%)
HSVhsv(273, 77%, 69%)
CMYKcmyk(35.2%, 77.3%, 0%, 31%)
CIE-LABlab(34.46, 55.88, -58.40)
CIE-LCHlch(34.46, 80.83, 313.73°)
OKLaboklab(46.03% 0.1124 -0.1665)
OKLCHoklch(46.03% 0.201 304)
XYZxyz(15.5329, 8.2296, 41.8360)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228B0 #66B028
analogous
#2E28B0 #7228B0 #B028AA
triadic
#7228B0 #B07228 #28B072
tetradic
#7228B0 #B02E28 #66B028 #28AAB0
square
#7228B0 #B02E28 #66B028 #28AAB0
split-complementary
#7228B0 #AAB028 #28B02E
monochromatic
#31114C #521D7E #7228B0 #9141D4 #AE73DF

Accessibility & contrast

On white

7.94
#7228B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7228B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7228B0
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7228B0#FFFFFF#000000##FFFFFF
##7228B01.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB4
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#664B6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7228b0;
/* rgb */ color: rgb(114, 40, 176);
/* oklch */ color: oklch(46.0% 0.201 304.0);
Tailwind
colors: {
  custom: {
    50: '#a06ac9',
    500: '#7228b0',
    950: '#000000',
  },
}
SCSS
$custom: #7228b0;
$custom-light: #a06ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#7228b0",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 272.647,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46027,
    "c": 0.20083,
    "h": 304
  },
  "luminance": 0.0823
}

Semantic roles & 50–950 ramp

primary
#7228B0
secondary
#96C66D
accent
#E6428D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7228B0

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

Preview Lab → · Contrast checker → · Palette generator →

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