#7227AE#7227AE

#7227AE is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.8% C 0.200 H 304.7°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7227AE
RGBrgb(114, 39, 174)
HSLhsl(273, 63%, 42%)
HSVhsv(273, 78%, 68%)
CMYKcmyk(34.5%, 77.6%, 0%, 31.8%)
CIE-LABlab(34.16, 55.81, -57.70)
CIE-LCHlch(34.16, 80.27, 314.05°)
OKLaboklab(45.77% 0.1137 -0.1644)
OKLCHoklch(45.77% 0.2 304.7)
XYZxyz(15.3032, 8.0845, 40.7905)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227AE #63AE27
analogous
#2E27AE #7227AE #AE27A7
triadic
#7227AE #AE7227 #27AE72
tetradic
#7227AE #AE2E27 #63AE27 #27A7AE
square
#7227AE #AE2E27 #63AE27 #27A7AE
split-complementary
#7227AE #A7AE27 #27AE2E
monochromatic
#30114A #511C7C #7227AE #913ED4 #AE70DF

Accessibility & contrast

On white

8.03
#7227AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7227AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7227AE#FFFFFF#000000##FFFFFF
##7227AE1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB2
Deuteranopia (green-blind)
#0050AB
Tritanopia (blue-blind)
#664A6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7227ae;
/* rgb */ color: rgb(114, 39, 174);
/* oklch */ color: oklch(45.8% 0.200 304.7);
Tailwind
colors: {
  custom: {
    50: '#a06ac7',
    500: '#7227ae',
    950: '#000000',
  },
}
SCSS
$custom: #7227ae;
$custom-light: #a06ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#7227ae",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 174
  },
  "hsl": {
    "h": 273.333,
    "s": 63.38,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45768,
    "c": 0.19987,
    "h": 304.7
  },
  "luminance": 0.08084
}

Semantic roles & 50–950 ramp

primary
#7227AE
secondary
#93C66B
accent
#E6418B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7227AE

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

Preview Lab → · Contrast checker → · Palette generator →

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