#7226AB#7226AB

#7226AB is a mid, vivid violet. Relative luminance 0.079; OKLCH L 45.4% C 0.198 H 305.6°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7226AB
RGBrgb(114, 38, 171)
HSLhsl(274, 64%, 41%)
HSVhsv(274, 78%, 67%)
CMYKcmyk(33.3%, 77.8%, 0%, 32.9%)
CIE-LABlab(33.78, 55.51, -56.52)
CIE-LCHlch(33.78, 79.22, 314.49°)
OKLaboklab(45.43% 0.1153 -0.1609)
OKLCHoklch(45.43% 0.198 305.6)
XYZxyz(14.9816, 7.9040, 39.2566)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7226AB #5FAB26
analogous
#3026AB #7226AB #AB26A1
triadic
#7226AB #AB7226 #26AB72
tetradic
#7226AB #AB3026 #5FAB26 #26A1AB
square
#7226AB #AB3026 #5FAB26 #26A1AB
split-complementary
#7226AB #A1AB26 #26AB30
monochromatic
#2F1047 #511B79 #7226AB #923BD3 #AE6DDF

Accessibility & contrast

On white

8.14
#7226AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7226AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7226AB
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7226AB#FFFFFF#000000##FFFFFF
##7226AB1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0050A8
Tritanopia (blue-blind)
#674868
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7226ab;
/* rgb */ color: rgb(114, 38, 171);
/* oklch */ color: oklch(45.4% 0.198 305.6);
Tailwind
colors: {
  custom: {
    50: '#a069c5',
    500: '#7226ab',
    950: '#000000',
  },
}
SCSS
$custom: #7226ab;
$custom-light: #a069c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7226ab",
  "rgb": {
    "r": 114,
    "g": 38,
    "b": 171
  },
  "hsl": {
    "h": 274.286,
    "s": 63.636,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45429,
    "c": 0.19794,
    "h": 305.6
  },
  "luminance": 0.07904
}

Semantic roles & 50–950 ramp

primary
#7226AB
secondary
#90C568
accent
#E74188
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#0F0713
muted
#7F7A82

Preview Lab

Preview with #7226AB

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

Preview Lab → · Contrast checker → · Palette generator →

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