#7A22BB#7A22BB

#7A22BB is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.4% C 0.219 H 305.0°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#7A22BB
RGBrgb(122, 34, 187)
HSLhsl(275, 69%, 43%)
HSVhsv(275, 82%, 73%)
CMYKcmyk(34.8%, 81.8%, 0%, 26.7%)
CIE-LABlab(35.73, 61.82, -62.80)
CIE-LCHlch(35.73, 88.12, 314.55°)
OKLaboklab(47.43% 0.1255 -0.179)
OKLCHoklch(47.43% 0.219 305)
XYZxyz(17.5657, 8.8696, 47.7907)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A22BB #63BB22
analogous
#2D22BB #7A22BB #BB22AF
triadic
#7A22BB #BB7A22 #22BB7A
tetradic
#7A22BB #BB2D22 #63BB22 #22AFBB
square
#7A22BB #BB2D22 #63BB22 #22AFBB
split-complementary
#7A22BB #AFBB22 #22BB2D
monochromatic
#360F53 #581987 #7A22BB #993EDC #B472E5

Accessibility & contrast

On white

7.57
#7A22BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7A22BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A22BB
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A22BB#FFFFFF#000000##FFFFFF
##7A22BB1.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BF
Deuteranopia (green-blind)
#0054B8
Tritanopia (blue-blind)
#6D4C70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a22bb;
/* rgb */ color: rgb(122, 34, 187);
/* oklch */ color: oklch(47.4% 0.219 305.0);
Tailwind
colors: {
  custom: {
    50: '#a769d0',
    500: '#7a22bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a22bb;
$custom-light: #a769d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a22bb",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 187
  },
  "hsl": {
    "h": 274.51,
    "s": 69.231,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47432,
    "c": 0.21862,
    "h": 305
  },
  "luminance": 0.08869
}

Semantic roles & 50–950 ramp

primary
#7A22BB
secondary
#95CC6D
accent
#EC3C87
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A22BB

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

Preview Lab → · Contrast checker → · Palette generator →

#7A22BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva