#7227BB#7227BB

#7227BB is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.9% C 0.213 H 301.2°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7227BB
RGBrgb(114, 39, 187)
HSLhsl(270, 65%, 44%)
HSVhsv(270, 79%, 73%)
CMYKcmyk(39%, 79.1%, 0%, 26.7%)
CIE-LABlab(35.23, 58.83, -63.66)
CIE-LCHlch(35.23, 86.68, 312.74°)
OKLaboklab(46.85% 0.1103 -0.1819)
OKLCHoklch(46.85% 0.213 301.2)
XYZxyz(16.6324, 8.6162, 47.7909)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227BB #70BB27
analogous
#2827BB #7227BB #BB27BA
triadic
#7227BB #BB7227 #27BB72
tetradic
#7227BB #BB2827 #70BB27 #27BABB
square
#7227BB #BB2827 #70BB27 #27BABB
split-complementary
#7227BB #BABB27 #27BB28
monochromatic
#341256 #531C88 #7227BB #9147D9 #AF79E3

Accessibility & contrast

On white

7.71
#7227BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7227BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7227BB
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7227BB#FFFFFF#000000##FFFFFF
##7227BB1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.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: #7227bb;
/* rgb */ color: rgb(114, 39, 187);
/* oklch */ color: oklch(46.9% 0.213 301.2);
Tailwind
colors: {
  custom: {
    50: '#a16ad1',
    500: '#7227bb',
    950: '#000000',
  },
}
SCSS
$custom: #7227bb;
$custom-light: #a16ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#7227bb",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 187
  },
  "hsl": {
    "h": 270.405,
    "s": 65.487,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46853,
    "c": 0.2127,
    "h": 301.2
  },
  "luminance": 0.08616
}

Semantic roles & 50–950 ramp

primary
#7227BB
secondary
#9ECB73
accent
#E83F93
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7227BB

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

Preview Lab → · Contrast checker → · Palette generator →

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