#7822AB#7822AB

#7822AB is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.9% C 0.203 H 308.6°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7822AB
RGBrgb(120, 34, 171)
HSLhsl(278, 67%, 40%)
HSVhsv(278, 80%, 67%)
CMYKcmyk(29.8%, 80.1%, 0%, 32.9%)
CIE-LABlab(34.14, 58.01, -55.89)
CIE-LCHlch(34.14, 80.55, 316.07°)
OKLaboklab(45.86% 0.127 -0.1588)
OKLCHoklch(45.86% 0.203 308.6)
XYZxyz(15.6669, 8.0777, 39.2540)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7822AB #55AB22
analogous
#3322AB #7822AB #AB229A
triadic
#7822AB #AB7822 #22AB78
tetradic
#7822AB #AB3322 #55AB22 #229AAB
square
#7822AB #AB3322 #55AB22 #229AAB
split-complementary
#7822AB #9AAB22 #22AB33
monochromatic
#300E45 #541878 #7822AB #9A34D7 #B367E1

Accessibility & contrast

On white

8.03
#7822AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7822AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7822AB
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7822AB#FFFFFF#000000##FFFFFF
##7822AB1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#704567
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7822ab;
/* rgb */ color: rgb(120, 34, 171);
/* oklch */ color: oklch(45.9% 0.203 308.6);
Tailwind
colors: {
  custom: {
    50: '#a468c5',
    500: '#7822ab',
    950: '#000000',
  },
}
SCSS
$custom: #7822ab;
$custom-light: #a468c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7822ab",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 171
  },
  "hsl": {
    "h": 277.664,
    "s": 66.829,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45863,
    "c": 0.20333,
    "h": 308.6
  },
  "luminance": 0.08077
}

Semantic roles & 50–950 ramp

primary
#7822AB
secondary
#88C663
accent
#EA3E7E
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7822AB

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

Preview Lab → · Contrast checker → · Palette generator →

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