#7828A7#7828A7

#7828A7 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.1% C 0.194 H 309.4°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7828A7
RGBrgb(120, 40, 167)
HSLhsl(278, 61%, 41%)
HSVhsv(278, 76%, 65%)
CMYKcmyk(28.1%, 76%, 0%, 34.5%)
CIE-LABlab(34.60, 54.93, -52.74)
CIE-LCHlch(34.60, 76.15, 316.16°)
OKLaboklab(46.09% 0.1227 -0.1496)
OKLCHoklch(46.09% 0.194 309.4)
XYZxyz(15.4782, 8.3010, 37.3386)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7828A7 #57A728
analogous
#3828A7 #7828A7 #A72896
triadic
#7828A7 #A77828 #28A778
tetradic
#7828A7 #A73828 #57A728 #2896A7
square
#7828A7 #A73828 #57A728 #2896A7
split-complementary
#7828A7 #96A728 #28A738
monochromatic
#311044 #551C76 #7828A7 #993CD0 #B36DDC

Accessibility & contrast

On white

7.89
#7828A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7828A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7828A7
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7828A7#FFFFFF#000000##FFFFFF
##7828A71.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#714666
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7828a7;
/* rgb */ color: rgb(120, 40, 167);
/* oklch */ color: oklch(46.1% 0.194 309.4);
Tailwind
colors: {
  custom: {
    50: '#a46bc2',
    500: '#7828a7',
    950: '#000000',
  },
}
SCSS
$custom: #7828a7;
$custom-light: #a46bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#7828a7",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 167
  },
  "hsl": {
    "h": 277.795,
    "s": 61.353,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46088,
    "c": 0.1935,
    "h": 309.4
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#7828A7
secondary
#8AC368
accent
#E4437F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7828A7

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

Preview Lab → · Contrast checker → · Palette generator →

#7828A7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva