#7228BD#7228BD

#7228BD is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.1% C 0.214 H 300.6°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#7228BD
RGBrgb(114, 40, 189)
HSLhsl(270, 65%, 45%)
HSVhsv(270, 79%, 74%)
CMYKcmyk(39.7%, 78.8%, 0%, 25.9%)
CIE-LABlab(35.54, 58.92, -64.34)
CIE-LCHlch(35.54, 87.24, 312.48°)
OKLaboklab(47.12% 0.1089 -0.1839)
OKLCHoklch(47.12% 0.214 300.6)
XYZxyz(16.8812, 8.7690, 48.9374)
Luminance0.0877 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228BD #73BD28
analogous
#2828BD #7228BD #BD28BD
triadic
#7228BD #BD7228 #28BD72
tetradic
#7228BD #BD2828 #73BD28 #28BDBD
square
#7228BD #BD2828 #73BD28 #28BDBD
split-complementary
#7228BD #BDBD28 #28BD28
monochromatic
#351358 #541D8A #7228BD #914AD9 #AF7CE3

Accessibility & contrast

On white

7.63
#7228BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7228BD
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7228BD#FFFFFF#000000##FFFFFF
##7228BD1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C1
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#615173
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7228bd;
/* rgb */ color: rgb(114, 40, 189);
/* oklch */ color: oklch(47.1% 0.214 300.6);
Tailwind
colors: {
  custom: {
    50: '#a26bd2',
    500: '#7228bd',
    950: '#000000',
  },
}
SCSS
$custom: #7228bd;
$custom-light: #a26bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7228bd",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 269.799,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47115,
    "c": 0.21374,
    "h": 300.6
  },
  "luminance": 0.08769
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7228BD

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

Preview Lab → · Contrast checker → · Palette generator →

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