#7822A8#7822A8

#7822A8 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.6% C 0.201 H 309.5°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7822A8
RGBrgb(120, 34, 168)
HSLhsl(279, 66%, 40%)
HSVhsv(279, 80%, 66%)
CMYKcmyk(28.6%, 79.8%, 0%, 34.1%)
CIE-LABlab(33.91, 57.36, -54.47)
CIE-LCHlch(33.91, 79.11, 316.48°)
OKLaboklab(45.63% 0.1277 -0.1546)
OKLCHoklch(45.63% 0.201 309.5)
XYZxyz(15.3842, 7.9646, 37.7651)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7822A8 #52A822
analogous
#3522A8 #7822A8 #A82295
triadic
#7822A8 #A87822 #22A878
tetradic
#7822A8 #A83522 #52A822 #2295A8
square
#7822A8 #A83522 #52A822 #2295A8
split-complementary
#7822A8 #95A822 #22A835
monochromatic
#2F0D42 #541875 #7822A8 #9B32D5 #B465E0

Accessibility & contrast

On white

8.10
#7822A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7822A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7822A8
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7822A8#FFFFFF#000000##FFFFFF
##7822A81.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0051A5
Tritanopia (blue-blind)
#714465
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7822a8;
/* rgb */ color: rgb(120, 34, 168);
/* oklch */ color: oklch(45.6% 0.201 309.5);
Tailwind
colors: {
  custom: {
    50: '#a468c3',
    500: '#7822a8',
    950: '#000000',
  },
}
SCSS
$custom: #7822a8;
$custom-light: #a468c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7822a8",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 168
  },
  "hsl": {
    "h": 278.507,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45625,
    "c": 0.20055,
    "h": 309.5
  },
  "luminance": 0.07964
}

Semantic roles & 50–950 ramp

primary
#7822A8
secondary
#85C561
accent
#E93F7C
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7822A8

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

Preview Lab → · Contrast checker → · Palette generator →

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