#7228B3#7228B3

#7228B3 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.3% C 0.204 H 303.2°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7228B3
RGBrgb(114, 40, 179)
HSLhsl(272, 63%, 43%)
HSVhsv(272, 78%, 70%)
CMYKcmyk(36.3%, 77.7%, 0%, 29.8%)
CIE-LABlab(34.70, 56.58, -59.79)
CIE-LCHlch(34.70, 82.32, 313.42°)
OKLaboklab(46.27% 0.1116 -0.1705)
OKLCHoklch(46.27% 0.204 303.2)
XYZxyz(15.8330, 8.3497, 43.4166)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228B3 #69B328
analogous
#2C28B3 #7228B3 #B328AE
triadic
#7228B3 #B37228 #28B372
tetradic
#7228B3 #B32C28 #69B328 #28AEB3
square
#7228B3 #B32C28 #69B328 #28AEB3
split-complementary
#7228B3 #AEB328 #28B32C
monochromatic
#32124F #521D81 #7228B3 #9143D5 #AE75E0

Accessibility & contrast

On white

7.87
#7228B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7228B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7228B3
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7228B3#FFFFFF#000000##FFFFFF
##7228B31.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#654C6D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7228b3;
/* rgb */ color: rgb(114, 40, 179);
/* oklch */ color: oklch(46.3% 0.204 303.2);
Tailwind
colors: {
  custom: {
    50: '#a16bcb',
    500: '#7228b3',
    950: '#000000',
  },
}
SCSS
$custom: #7228b3;
$custom-light: #a16bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7228b3",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 271.942,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46274,
    "c": 0.20382,
    "h": 303.2
  },
  "luminance": 0.0835
}

Semantic roles & 50–950 ramp

primary
#7228B3
secondary
#99C86F
accent
#E6418F
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7228B3

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

Preview Lab → · Contrast checker → · Palette generator →

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