#7226B1#7226B1

#7226B1 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.9% C 0.204 H 303.9°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#7226B1
RGBrgb(114, 38, 177)
HSLhsl(273, 65%, 42%)
HSVhsv(273, 79%, 69%)
CMYKcmyk(35.6%, 78.5%, 0%, 30.6%)
CIE-LABlab(34.27, 56.89, -59.31)
CIE-LCHlch(34.27, 82.18, 313.81°)
OKLaboklab(45.92% 0.1138 -0.1691)
OKLCHoklch(45.92% 0.204 303.9)
XYZxyz(15.5665, 8.1380, 42.3372)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7226B1 #65B126
analogous
#2D26B1 #7226B1 #B126AA
triadic
#7226B1 #B17226 #26B172
tetradic
#7226B1 #B12D26 #65B126 #26AAB1
square
#7226B1 #B12D26 #65B126 #26AAB1
split-complementary
#7226B1 #AAB126 #26B12D
monochromatic
#31104C #521B7F #7226B1 #913FD6 #AE71E0

Accessibility & contrast

On white

7.99
#7226B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7226B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7226B1
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7226B1#FFFFFF#000000##FFFFFF
##7226B11.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0050AE
Tritanopia (blue-blind)
#654B6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7226b1;
/* rgb */ color: rgb(114, 38, 177);
/* oklch */ color: oklch(45.9% 0.204 303.9);
Tailwind
colors: {
  custom: {
    50: '#a169c9',
    500: '#7226b1',
    950: '#000000',
  },
}
SCSS
$custom: #7226b1;
$custom-light: #a169c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7226b1",
  "rgb": {
    "r": 114,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 272.806,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45921,
    "c": 0.20382,
    "h": 303.9
  },
  "luminance": 0.08138
}

Semantic roles & 50–950 ramp

primary
#7226B1
secondary
#95C76B
accent
#E8408C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7226B1

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

Preview Lab → · Contrast checker → · Palette generator →

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