#7828AC#7828AC

#7828AC is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.5% C 0.198 H 307.8°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7828AC
RGBrgb(120, 40, 172)
HSLhsl(276, 62%, 42%)
HSVhsv(276, 77%, 67%)
CMYKcmyk(30.2%, 76.7%, 0%, 32.5%)
CIE-LABlab(34.98, 56.04, -55.12)
CIE-LCHlch(34.98, 78.60, 315.47°)
OKLaboklab(46.48% 0.1217 -0.1566)
OKLCHoklch(46.48% 0.198 307.8)
XYZxyz(15.9493, 8.4894, 39.8201)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7828AC #5CAC28
analogous
#3628AC #7828AC #AC289E
triadic
#7828AC #AC7828 #28AC78
tetradic
#7828AC #AC3628 #5CAC28 #289EAC
square
#7828AC #AC3628 #5CAC28 #289EAC
split-complementary
#7828AC #9EAC28 #28AC36
monochromatic
#331149 #551C7A #7828AC #983FD2 #B371DE

Accessibility & contrast

On white

7.78
#7828AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7828AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7828AC
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7828AC#FFFFFF#000000##FFFFFF
##7828AC1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#6F4969
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7828ac;
/* rgb */ color: rgb(120, 40, 172);
/* oklch */ color: oklch(46.5% 0.198 307.8);
Tailwind
colors: {
  custom: {
    50: '#a46bc6',
    500: '#7828ac',
    950: '#000000',
  },
}
SCSS
$custom: #7828ac;
$custom-light: #a46bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7828ac",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 172
  },
  "hsl": {
    "h": 276.364,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46475,
    "c": 0.19833,
    "h": 307.8
  },
  "luminance": 0.08489
}

Semantic roles & 50–950 ramp

primary
#7828AC
secondary
#8EC56B
accent
#E54283
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7828AC

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

Preview Lab → · Contrast checker → · Palette generator →

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