#7A22BD#7A22BD

#7A22BD is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.6% C 0.220 H 304.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7A22BD
RGBrgb(122, 34, 189)
HSLhsl(274, 70%, 44%)
HSVhsv(274, 82%, 74%)
CMYKcmyk(35.4%, 82%, 0%, 25.9%)
CIE-LABlab(35.90, 62.26, -63.71)
CIE-LCHlch(35.90, 89.08, 314.34°)
OKLaboklab(47.6% 0.1249 -0.1817)
OKLCHoklch(47.6% 0.22 304.5)
XYZxyz(17.7813, 8.9558, 48.9261)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A22BD #65BD22
analogous
#2D22BD #7A22BD #BD22B2
triadic
#7A22BD #BD7A22 #22BD7A
tetradic
#7A22BD #BD2D22 #65BD22 #22B2BD
square
#7A22BD #BD2D22 #65BD22 #22B2BD
split-complementary
#7A22BD #B2BD22 #22BD2D
monochromatic
#370F55 #591989 #7A22BD #9940DD #B473E6

Accessibility & contrast

On white

7.52
#7A22BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7A22BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A22BD
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A22BD#FFFFFF#000000##FFFFFF
##7A22BD1.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#6D4D71
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a22bd;
/* rgb */ color: rgb(122, 34, 189);
/* oklch */ color: oklch(47.6% 0.220 304.5);
Tailwind
colors: {
  custom: {
    50: '#a769d2',
    500: '#7a22bd',
    950: '#000000',
  },
}
SCSS
$custom: #7a22bd;
$custom-light: #a769d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a22bd",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 189
  },
  "hsl": {
    "h": 274.065,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.476,
    "c": 0.22047,
    "h": 304.5
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

primary
#7A22BD
secondary
#97CD6E
accent
#EC3B88
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7A22BD

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

Preview Lab → · Contrast checker → · Palette generator →

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