#7828A9#7828A9

#7828A9 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.2% C 0.195 H 308.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#7828A9
RGBrgb(120, 40, 169)
HSLhsl(277, 62%, 41%)
HSVhsv(277, 76%, 66%)
CMYKcmyk(29%, 76.3%, 0%, 33.7%)
CIE-LABlab(34.75, 55.37, -53.70)
CIE-LCHlch(34.75, 77.13, 315.88°)
OKLaboklab(46.24% 0.1223 -0.1524)
OKLCHoklch(46.24% 0.195 308.7)
XYZxyz(15.6645, 8.3755, 38.3199)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7828A9 #59A928
analogous
#3728A9 #7828A9 #A92899
triadic
#7828A9 #A97828 #28A978
tetradic
#7828A9 #A93728 #59A928 #2899A9
square
#7828A9 #A93728 #59A928 #2899A9
split-complementary
#7828A9 #99A928 #28A937
monochromatic
#321146 #551C78 #7828A9 #993DD1 #B36FDD

Accessibility & contrast

On white

7.85
#7828A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7828A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7828A9
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7828A9#FFFFFF#000000##FFFFFF
##7828A91.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAD
Deuteranopia (green-blind)
#0053A6
Tritanopia (blue-blind)
#704767
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7828a9;
/* rgb */ color: rgb(120, 40, 169);
/* oklch */ color: oklch(46.2% 0.195 308.7);
Tailwind
colors: {
  custom: {
    50: '#a46bc3',
    500: '#7828a9',
    950: '#000000',
  },
}
SCSS
$custom: #7828a9;
$custom-light: #a46bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7828a9",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 277.209,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46242,
    "c": 0.19543,
    "h": 308.7
  },
  "luminance": 0.08375
}

Semantic roles & 50–950 ramp

primary
#7828A9
secondary
#8CC469
accent
#E54380
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7828A9

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

Preview Lab → · Contrast checker → · Palette generator →

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