#7227AB#7227AB

#7227AB is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.5% C 0.197 H 305.5°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7227AB
RGBrgb(114, 39, 171)
HSLhsl(274, 63%, 41%)
HSVhsv(274, 77%, 67%)
CMYKcmyk(33.3%, 77.2%, 0%, 32.9%)
CIE-LABlab(33.92, 55.12, -56.29)
CIE-LCHlch(33.92, 78.79, 314.40°)
OKLaboklab(45.52% 0.1144 -0.1602)
OKLCHoklch(45.52% 0.197 305.5)
XYZxyz(15.0140, 7.9688, 39.2674)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7227AB #60AB27
analogous
#3027AB #7227AB #AB27A2
triadic
#7227AB #AB7227 #27AB72
tetradic
#7227AB #AB3027 #60AB27 #27A2AB
square
#7227AB #AB3027 #60AB27 #27A2AB
split-complementary
#7227AB #A2AB27 #27AB30
monochromatic
#301047 #511C79 #7227AB #923DD3 #AE6EDE

Accessibility & contrast

On white

8.10
#7227AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7227AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7227AB
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7227AB#FFFFFF#000000##FFFFFF
##7227AB1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAF
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#674968
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7227ab;
/* rgb */ color: rgb(114, 39, 171);
/* oklch */ color: oklch(45.5% 0.197 305.5);
Tailwind
colors: {
  custom: {
    50: '#a06ac5',
    500: '#7227ab',
    950: '#000000',
  },
}
SCSS
$custom: #7227ab;
$custom-light: #a06ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#7227ab",
  "rgb": {
    "r": 114,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 274.091,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45524,
    "c": 0.1969,
    "h": 305.5
  },
  "luminance": 0.07969
}

Semantic roles & 50–950 ramp

primary
#7227AB
secondary
#91C569
accent
#E64289
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7227AB

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

Preview Lab → · Contrast checker → · Palette generator →

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