#7828A1#7828A1

#7828A1 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.6% C 0.188 H 311.3°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#7828A1
RGBrgb(120, 40, 161)
HSLhsl(280, 60%, 39%)
HSVhsv(280, 75%, 63%)
CMYKcmyk(25.5%, 75.2%, 0%, 36.9%)
CIE-LABlab(34.16, 53.62, -49.85)
CIE-LCHlch(34.16, 73.21, 317.09°)
OKLaboklab(45.63% 0.1238 -0.1411)
OKLCHoklch(45.63% 0.188 311.3)
XYZxyz(14.9363, 8.0842, 34.4849)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7828A1 #51A128
analogous
#3B28A1 #7828A1 #A1288E
triadic
#7828A1 #A17828 #28A178
tetradic
#7828A1 #A13B28 #51A128 #288EA1
square
#7828A1 #A13B28 #51A128 #288EA1
split-complementary
#7828A1 #8EA128 #28A13B
monochromatic
#2F103F #531C70 #7828A1 #9B39CE #B46ADA

Accessibility & contrast

On white

8.03
#7828A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7828A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7828A1
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7828A1#FFFFFF#000000##FFFFFF
##7828A11.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)
#004DA4
Deuteranopia (green-blind)
#12529E
Tritanopia (blue-blind)
#734463
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7828a1;
/* rgb */ color: rgb(120, 40, 161);
/* oklch */ color: oklch(45.6% 0.188 311.3);
Tailwind
colors: {
  custom: {
    50: '#a36abe',
    500: '#7828a1',
    950: '#000000',
  },
}
SCSS
$custom: #7828a1;
$custom-light: #a36abe;
$custom-dark: #000000;
JSON
{
  "hex": "#7828a1",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 161
  },
  "hsl": {
    "h": 279.669,
    "s": 60.199,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45634,
    "c": 0.18771,
    "h": 311.3
  },
  "luminance": 0.08084
}

Semantic roles & 50–950 ramp

primary
#7828A1
secondary
#84C065
accent
#E3447A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7828A1

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

Preview Lab → · Contrast checker → · Palette generator →

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