#7227A7#7227A7

#7227A7 is a mid, vivid violet. Relative luminance 0.078; OKLCH L 45.2% C 0.193 H 306.7°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7227A7
RGBrgb(114, 39, 167)
HSLhsl(275, 62%, 40%)
HSVhsv(275, 77%, 65%)
CMYKcmyk(31.7%, 76.6%, 0%, 34.5%)
CIE-LABlab(33.60, 54.21, -54.41)
CIE-LCHlch(33.60, 76.80, 314.90°)
OKLaboklab(45.2% 0.1153 -0.1547)
OKLCHoklch(45.2% 0.193 306.7)
XYZxyz(14.6385, 7.8186, 37.2897)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227A7 #5CA727
analogous
#3227A7 #7227A7 #A7279C
triadic
#7227A7 #A77227 #27A772
tetradic
#7227A7 #A73227 #5CA727 #279CA7
square
#7227A7 #A73227 #5CA727 #279CA7
split-complementary
#7227A7 #9CA727 #27A732
monochromatic
#2E1044 #501B75 #7227A7 #933AD1 #AE6CDD

Accessibility & contrast

On white

8.19
#7227A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7227A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7227A7#FFFFFF#000000##FFFFFF
##7227A71.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAB
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#694766
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7227a7;
/* rgb */ color: rgb(114, 39, 167);
/* oklch */ color: oklch(45.2% 0.193 306.7);
Tailwind
colors: {
  custom: {
    50: '#a069c2',
    500: '#7227a7',
    950: '#000000',
  },
}
SCSS
$custom: #7227a7;
$custom-light: #a069c2;
$custom-dark: #000000;
JSON
{
  "hex": "#7227a7",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 167
  },
  "hsl": {
    "h": 275.156,
    "s": 62.136,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45204,
    "c": 0.19295,
    "h": 306.7
  },
  "luminance": 0.07818
}

Semantic roles & 50–950 ramp

primary
#7227A7
secondary
#8DC367
accent
#E54386
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #7227A7

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

Preview Lab → · Contrast checker → · Palette generator →

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