#7227A5#7227A5

#7227A5 is a mid, vivid violet. Relative luminance 0.077; OKLCH L 45.0% C 0.191 H 307.3°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#7227A5
RGBrgb(114, 39, 165)
HSLhsl(276, 62%, 40%)
HSVhsv(276, 76%, 65%)
CMYKcmyk(30.9%, 76.4%, 0%, 35.3%)
CIE-LABlab(33.45, 53.76, -53.46)
CIE-LCHlch(33.45, 75.81, 315.16°)
OKLaboklab(45.05% 0.1157 -0.1519)
OKLCHoklch(45.05% 0.191 307.3)
XYZxyz(14.4550, 7.7452, 36.3235)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227A5 #5AA527
analogous
#3327A5 #7227A5 #A52799
triadic
#7227A5 #A57227 #27A572
tetradic
#7227A5 #A53327 #5AA527 #2799A5
square
#7227A5 #A53327 #5AA527 #2799A5
split-complementary
#7227A5 #99A527 #27A533
monochromatic
#2E1042 #501B74 #7227A5 #9339D0 #AE6ADC

Accessibility & contrast

On white

8.24
#7227A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7227A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7227A5#FFFFFF#000000##FFFFFF
##7227A51.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA9
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#694665
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7227a5;
/* rgb */ color: rgb(114, 39, 165);
/* oklch */ color: oklch(45.0% 0.191 307.3);
Tailwind
colors: {
  custom: {
    50: '#a069c1',
    500: '#7227a5',
    950: '#000000',
  },
}
SCSS
$custom: #7227a5;
$custom-light: #a069c1;
$custom-dark: #000000;
JSON
{
  "hex": "#7227a5",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 165
  },
  "hsl": {
    "h": 275.714,
    "s": 61.765,
    "l": 40
  },
  "oklch": {
    "l": 0.45045,
    "c": 0.19098,
    "h": 307.3
  },
  "luminance": 0.07745
}

Semantic roles & 50–950 ramp

primary
#7227A5
secondary
#8BC266
accent
#E54384
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #7227A5

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

Preview Lab → · Contrast checker → · Palette generator →

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