#7227A8#7227A8

#7227A8 is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.3% C 0.194 H 306.4°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7227A8
RGBrgb(114, 39, 168)
HSLhsl(275, 62%, 41%)
HSVhsv(275, 77%, 66%)
CMYKcmyk(32.1%, 76.8%, 0%, 34.1%)
CIE-LABlab(33.68, 54.44, -54.88)
CIE-LCHlch(33.68, 77.30, 314.77°)
OKLaboklab(45.28% 0.1151 -0.1561)
OKLCHoklch(45.28% 0.194 306.4)
XYZxyz(14.7313, 7.8557, 37.7784)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227A8 #5DA827
analogous
#3227A8 #7227A8 #A8279D
triadic
#7227A8 #A87227 #27A872
tetradic
#7227A8 #A83227 #5DA827 #279DA8
square
#7227A8 #A83227 #5DA827 #279DA8
split-complementary
#7227A8 #9DA827 #27A832
monochromatic
#2F1045 #501B76 #7227A8 #923BD1 #AE6CDD

Accessibility & contrast

On white

8.17
#7227A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7227A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7227A8#FFFFFF#000000##FFFFFF
##7227A81.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAC
Deuteranopia (green-blind)
#0050A5
Tritanopia (blue-blind)
#684766
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7227a8;
/* rgb */ color: rgb(114, 39, 168);
/* oklch */ color: oklch(45.3% 0.194 306.4);
Tailwind
colors: {
  custom: {
    50: '#a069c3',
    500: '#7227a8',
    950: '#000000',
  },
}
SCSS
$custom: #7227a8;
$custom-light: #a069c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7227a8",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 274.884,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.45283,
    "c": 0.19394,
    "h": 306.4
  },
  "luminance": 0.07856
}

Semantic roles & 50–950 ramp

primary
#7227A8
secondary
#8EC367
accent
#E54287
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7227A8

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

Preview Lab → · Contrast checker → · Palette generator →

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