#7227BA#7227BA

#7227BA is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.8% C 0.212 H 301.5°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7227BA
RGBrgb(114, 39, 186)
HSLhsl(271, 65%, 44%)
HSVhsv(271, 79%, 73%)
CMYKcmyk(38.7%, 79%, 0%, 27.1%)
CIE-LABlab(35.15, 58.59, -63.21)
CIE-LCHlch(35.15, 86.19, 312.83°)
OKLaboklab(46.77% 0.1105 -0.1806)
OKLCHoklch(46.77% 0.212 301.5)
XYZxyz(16.5257, 8.5735, 47.2291)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227BA #6FBA27
analogous
#2927BA #7227BA #BA27B9
triadic
#7227BA #BA7227 #27BA72
tetradic
#7227BA #BA2927 #6FBA27 #27B9BA
square
#7227BA #BA2927 #6FBA27 #27B9BA
split-complementary
#7227BA #B9BA27 #27BA29
monochromatic
#341255 #531C87 #7227BA #9146D8 #AF79E3

Accessibility & contrast

On white

7.74
#7227BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7227BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7227BA
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7227BA#FFFFFF#000000##FFFFFF
##7227BA1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BE
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#624F71
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7227ba;
/* rgb */ color: rgb(114, 39, 186);
/* oklch */ color: oklch(46.8% 0.212 301.5);
Tailwind
colors: {
  custom: {
    50: '#a16ad0',
    500: '#7227ba',
    950: '#000000',
  },
}
SCSS
$custom: #7227ba;
$custom-light: #a16ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7227ba",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 186
  },
  "hsl": {
    "h": 270.612,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46768,
    "c": 0.21171,
    "h": 301.5
  },
  "luminance": 0.08574
}

Semantic roles & 50–950 ramp

primary
#7227BA
secondary
#9DCB72
accent
#E84092
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7227BA

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

Preview Lab → · Contrast checker → · Palette generator →

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