#7227B4#7227B4

#7227B4 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.3% C 0.206 H 303.0°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7227B4
RGBrgb(114, 39, 180)
HSLhsl(272, 64%, 43%)
HSVhsv(272, 78%, 71%)
CMYKcmyk(36.7%, 78.3%, 0%, 29.4%)
CIE-LABlab(34.65, 57.20, -60.47)
CIE-LCHlch(34.65, 83.24, 313.41°)
OKLaboklab(46.26% 0.1122 -0.1725)
OKLCHoklch(46.26% 0.206 303)
XYZxyz(15.9012, 8.3237, 43.9401)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227B4 #69B427
analogous
#2B27B4 #7227B4 #B427AF
triadic
#7227B4 #B47227 #27B472
tetradic
#7227B4 #B42B27 #69B427 #27AFB4
square
#7227B4 #B42B27 #69B427 #27AFB4
split-complementary
#7227B4 #AFB427 #27B42B
monochromatic
#32114F #521C82 #7227B4 #9142D6 #AE74E1

Accessibility & contrast

On white

7.88
#7227B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7227B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7227B4
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7227B4#FFFFFF#000000##FFFFFF
##7227B41.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B8
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#644C6D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7227b4;
/* rgb */ color: rgb(114, 39, 180);
/* oklch */ color: oklch(46.3% 0.206 303.0);
Tailwind
colors: {
  custom: {
    50: '#a16acb',
    500: '#7227b4',
    950: '#000000',
  },
}
SCSS
$custom: #7227b4;
$custom-light: #a16acb;
$custom-dark: #000000;
JSON
{
  "hex": "#7227b4",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 180
  },
  "hsl": {
    "h": 271.915,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46263,
    "c": 0.20579,
    "h": 303
  },
  "luminance": 0.08324
}

Semantic roles & 50–950 ramp

primary
#7227B4
secondary
#99C86F
accent
#E7408F
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7227B4

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

Preview Lab → · Contrast checker → · Palette generator →

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