#7227AA#7227AA

#7227AA is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.4% C 0.196 H 305.8°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7227AA
RGBrgb(114, 39, 170)
HSLhsl(274, 63%, 41%)
HSVhsv(274, 77%, 67%)
CMYKcmyk(32.9%, 77.1%, 0%, 33.3%)
CIE-LABlab(33.84, 54.89, -55.82)
CIE-LCHlch(33.84, 78.29, 314.52°)
OKLaboklab(45.44% 0.1146 -0.1589)
OKLCHoklch(45.44% 0.196 305.8)
XYZxyz(14.9190, 7.9308, 38.7673)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227AA #5FAA27
analogous
#3027AA #7227AA #AA27A0
triadic
#7227AA #AA7227 #27AA72
tetradic
#7227AA #AA3027 #5FAA27 #27A0AA
square
#7227AA #AA3027 #5FAA27 #27A0AA
split-complementary
#7227AA #A0AA27 #27AA30
monochromatic
#2F1046 #511C78 #7227AA #923CD2 #AE6EDE

Accessibility & contrast

On white

8.12
#7227AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7227AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7227AA#FFFFFF#000000##FFFFFF
##7227AA1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0050A7
Tritanopia (blue-blind)
#684867
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7227aa;
/* rgb */ color: rgb(114, 39, 170);
/* oklch */ color: oklch(45.4% 0.196 305.8);
Tailwind
colors: {
  custom: {
    50: '#a06ac4',
    500: '#7227aa',
    950: '#000000',
  },
}
SCSS
$custom: #7227aa;
$custom-light: #a06ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#7227aa",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 170
  },
  "hsl": {
    "h": 274.351,
    "s": 62.679,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45443,
    "c": 0.19591,
    "h": 305.8
  },
  "luminance": 0.07931
}

Semantic roles & 50–950 ramp

primary
#7227AA
secondary
#90C469
accent
#E64288
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7227AA

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

Preview Lab → · Contrast checker → · Palette generator →

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