#7227C4#7227C4

#7227C4 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.6% C 0.222 H 299.1°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7227C4
RGBrgb(114, 39, 196)
HSLhsl(269, 67%, 46%)
HSVhsv(269, 80%, 77%)
CMYKcmyk(41.8%, 80.1%, 0%, 23.1%)
CIE-LABlab(36.01, 60.95, -67.68)
CIE-LCHlch(36.01, 91.08, 312.00°)
OKLaboklab(47.63% 0.1076 -0.1937)
OKLCHoklch(47.63% 0.222 299.1)
XYZxyz(17.6262, 9.0137, 53.0250)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227C4 #79C427
analogous
#272BC4 #7227C4 #C027C4
triadic
#7227C4 #C47227 #27C472
tetradic
#7227C4 #C4272B #79C427 #27C4C0
square
#7227C4 #C4272B #79C427 #27C4C0
split-complementary
#7227C4 #C4C027 #2BC427
monochromatic
#37135E #541D91 #7227C4 #914DDC #B080E6

Accessibility & contrast

On white

7.49
#7227C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7227C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7227C4
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7227C4#FFFFFF#000000##FFFFFF
##7227C41.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C8
Deuteranopia (green-blind)
#0053C1
Tritanopia (blue-blind)
#5E5376
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7227c4;
/* rgb */ color: rgb(114, 39, 196);
/* oklch */ color: oklch(47.6% 0.222 299.1);
Tailwind
colors: {
  custom: {
    50: '#a26bd7',
    500: '#7227c4',
    950: '#000000',
  },
}
SCSS
$custom: #7227c4;
$custom-light: #a26bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7227c4",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 196
  },
  "hsl": {
    "h": 268.662,
    "s": 66.809,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47631,
    "c": 0.22157,
    "h": 299.1
  },
  "luminance": 0.09014
}

Semantic roles & 50–950 ramp

primary
#7227C4
secondary
#A5CE79
accent
#EA3E98
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100715
muted
#7F7A83

Preview Lab

Preview with #7227C4

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

Preview Lab → · Contrast checker → · Palette generator →

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