#7228AB#7228AB

#7228AB is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.6% C 0.196 H 305.4°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#7228AB
RGBrgb(114, 40, 171)
HSLhsl(274, 62%, 41%)
HSVhsv(274, 77%, 67%)
CMYKcmyk(33.3%, 76.6%, 0%, 32.9%)
CIE-LABlab(34.06, 54.72, -56.07)
CIE-LCHlch(34.06, 78.35, 314.30°)
OKLaboklab(45.62% 0.1135 -0.1596)
OKLCHoklch(45.62% 0.196 305.4)
XYZxyz(15.0473, 8.0354, 39.2784)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7228AB #61AB28
analogous
#3128AB #7228AB #AB28A3
triadic
#7228AB #AB7228 #28AB72
tetradic
#7228AB #AB3128 #61AB28 #28A3AB
square
#7228AB #AB3128 #61AB28 #28A3AB
split-complementary
#7228AB #A3AB28 #28AB31
monochromatic
#301148 #511C79 #7228AB #923ED2 #AE70DE

Accessibility & contrast

On white

8.06
#7228AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7228AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7228AB
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7228AB#FFFFFF#000000##FFFFFF
##7228AB1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.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: #7228ab;
/* rgb */ color: rgb(114, 40, 171);
/* oklch */ color: oklch(45.6% 0.196 305.4);
Tailwind
colors: {
  custom: {
    50: '#a06ac5',
    500: '#7228ab',
    950: '#000000',
  },
}
SCSS
$custom: #7228ab;
$custom-light: #a06ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#7228ab",
  "rgb": {
    "r": 114,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 273.893,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45621,
    "c": 0.19586,
    "h": 305.4
  },
  "luminance": 0.08035
}

Semantic roles & 50–950 ramp

primary
#7228AB
secondary
#92C46A
accent
#E54389
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7228AB

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

Preview Lab → · Contrast checker → · Palette generator →

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