#7227AD#7227AD

#7227AD is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.7% C 0.199 H 305.0°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#7227AD
RGBrgb(114, 39, 173)
HSLhsl(274, 63%, 42%)
HSVhsv(274, 77%, 68%)
CMYKcmyk(34.1%, 77.5%, 0%, 32.2%)
CIE-LABlab(34.08, 55.58, -57.23)
CIE-LCHlch(34.08, 79.78, 314.16°)
OKLaboklab(45.69% 0.1139 -0.163)
OKLCHoklch(45.69% 0.199 305)
XYZxyz(15.2061, 8.0457, 40.2789)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227AD #62AD27
analogous
#2F27AD #7227AD #AD27A5
triadic
#7227AD #AD7227 #27AD72
tetradic
#7227AD #AD2F27 #62AD27 #27A5AD
square
#7227AD #AD2F27 #62AD27 #27A5AD
split-complementary
#7227AD #A5AD27 #27AD2F
monochromatic
#301049 #511C7B #7227AD #923ED3 #AE70DF

Accessibility & contrast

On white

8.05
#7227AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7227AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7227AD#FFFFFF#000000##FFFFFF
##7227AD1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#674969
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7227ad;
/* rgb */ color: rgb(114, 39, 173);
/* oklch */ color: oklch(45.7% 0.199 305.0);
Tailwind
colors: {
  custom: {
    50: '#a06ac6',
    500: '#7227ad',
    950: '#000000',
  },
}
SCSS
$custom: #7227ad;
$custom-light: #a06ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#7227ad",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 173
  },
  "hsl": {
    "h": 273.582,
    "s": 63.208,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45686,
    "c": 0.19888,
    "h": 305
  },
  "luminance": 0.08046
}

Semantic roles & 50–950 ramp

primary
#7227AD
secondary
#92C66A
accent
#E6428A
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7227AD

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

Preview Lab → · Contrast checker → · Palette generator →

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