#7226BB#7226BB

#7226BB is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.8% C 0.214 H 301.3°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7226BB
RGBrgb(114, 38, 187)
HSLhsl(271, 66%, 44%)
HSVhsv(271, 80%, 73%)
CMYKcmyk(39%, 79.7%, 0%, 26.7%)
CIE-LABlab(35.11, 59.20, -63.87)
CIE-LCHlch(35.11, 87.09, 312.83°)
OKLaboklab(46.76% 0.111 -0.1825)
OKLCHoklch(46.76% 0.214 301.3)
XYZxyz(16.6000, 8.5514, 47.7801)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7226BB #6FBB26
analogous
#2826BB #7226BB #BB26BA
triadic
#7226BB #BB7226 #26BB72
tetradic
#7226BB #BB2826 #6FBB26 #26BABB
square
#7226BB #BB2826 #6FBB26 #26BABB
split-complementary
#7226BB #BABB26 #26BB28
monochromatic
#341155 #531C88 #7226BB #9145D9 #AF78E4

Accessibility & contrast

On white

7.75
#7226BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7226BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7226BB
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7226BB#FFFFFF#000000##FFFFFF
##7226BB1.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)
#0052BF
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#624F71
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7226bb;
/* rgb */ color: rgb(114, 38, 187);
/* oklch */ color: oklch(46.8% 0.214 301.3);
Tailwind
colors: {
  custom: {
    50: '#a16ad1',
    500: '#7226bb',
    950: '#000000',
  },
}
SCSS
$custom: #7226bb;
$custom-light: #a16ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#7226bb",
  "rgb": {
    "r": 114,
    "g": 38,
    "b": 187
  },
  "hsl": {
    "h": 270.604,
    "s": 66.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46763,
    "c": 0.21362,
    "h": 301.3
  },
  "luminance": 0.08551
}

Semantic roles & 50–950 ramp

primary
#7226BB
secondary
#9DCB72
accent
#E93F92
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7226BB

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

Preview Lab → · Contrast checker → · Palette generator →

#7226BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva