#7226A2#7226A2

#7226A2 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.7% C 0.189 H 308.3°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7226A2
RGBrgb(114, 38, 162)
HSLhsl(277, 62%, 39%)
HSVhsv(277, 77%, 64%)
CMYKcmyk(29.6%, 76.5%, 0%, 36.5%)
CIE-LABlab(33.08, 53.48, -52.25)
CIE-LCHlch(33.08, 74.77, 315.67°)
OKLaboklab(44.71% 0.1173 -0.1483)
OKLCHoklch(44.71% 0.189 308.3)
XYZxyz(14.1528, 7.5725, 34.8915)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7226A2 #56A226
analogous
#3426A2 #7226A2 #A22694
triadic
#7226A2 #A27226 #26A272
tetradic
#7226A2 #A23426 #56A226 #2694A2
square
#7226A2 #A23426 #56A226 #2694A2
split-complementary
#7226A2 #94A226 #26A234
monochromatic
#2C0F3F #4F1A70 #7226A2 #9435D0 #AE67DB

Accessibility & contrast

On white

8.35
#7226A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7226A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7226A2
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7226A2#FFFFFF#000000##FFFFFF
##7226A21.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#004F9F
Tritanopia (blue-blind)
#6A4463
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7226a2;
/* rgb */ color: rgb(114, 38, 162);
/* oklch */ color: oklch(44.7% 0.189 308.3);
Tailwind
colors: {
  custom: {
    50: '#9f69be',
    500: '#7226a2',
    950: '#000000',
  },
}
SCSS
$custom: #7226a2;
$custom-light: #9f69be;
$custom-dark: #000000;
JSON
{
  "hex": "#7226a2",
  "rgb": {
    "r": 114,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 276.774,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44712,
    "c": 0.18911,
    "h": 308.3
  },
  "luminance": 0.07572
}

Semantic roles & 50–950 ramp

primary
#7226A2
secondary
#87C163
accent
#E54382
background
#FAF6FB
surface
#F4EBF7
border
#CEC6D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #7226A2

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

Preview Lab → · Contrast checker → · Palette generator →

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