#7227AC#7227AC

#7227AC is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.6% C 0.198 H 305.2°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7227AC
RGBrgb(114, 39, 172)
HSLhsl(274, 63%, 41%)
HSVhsv(274, 77%, 67%)
CMYKcmyk(33.7%, 77.3%, 0%, 32.5%)
CIE-LABlab(34.00, 55.35, -56.76)
CIE-LCHlch(34.00, 79.28, 314.28°)
OKLaboklab(45.61% 0.1142 -0.1616)
OKLCHoklch(45.61% 0.198 305.2)
XYZxyz(15.1097, 8.0071, 39.7712)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227AC #61AC27
analogous
#3027AC #7227AC #AC27A4
triadic
#7227AC #AC7227 #27AC72
tetradic
#7227AC #AC3027 #61AC27 #27A4AC
square
#7227AC #AC3027 #61AC27 #27A4AC
split-complementary
#7227AC #A4AC27 #27AC30
monochromatic
#301048 #511C7A #7227AC #923DD3 #AE6FDE

Accessibility & contrast

On white

8.07
#7227AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7227AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7227AC
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7227AC#FFFFFF#000000##FFFFFF
##7227AC1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7227ac;
/* rgb */ color: rgb(114, 39, 172);
/* oklch */ color: oklch(45.6% 0.198 305.2);
Tailwind
colors: {
  custom: {
    50: '#a06ac6',
    500: '#7227ac',
    950: '#000000',
  },
}
SCSS
$custom: #7227ac;
$custom-light: #a06ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#7227ac",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 172
  },
  "hsl": {
    "h": 273.835,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45605,
    "c": 0.19789,
    "h": 305.2
  },
  "luminance": 0.08007
}

Semantic roles & 50–950 ramp

primary
#7227AC
secondary
#92C56A
accent
#E64289
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7227AC

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

Preview Lab → · Contrast checker → · Palette generator →

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