#7828A4#7828A4

#7828A4 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.9% C 0.191 H 310.3°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7828A4
RGBrgb(120, 40, 164)
HSLhsl(279, 61%, 40%)
HSVhsv(279, 76%, 64%)
CMYKcmyk(26.8%, 75.6%, 0%, 35.7%)
CIE-LABlab(34.38, 54.27, -51.30)
CIE-LCHlch(34.38, 74.68, 316.61°)
OKLaboklab(45.86% 0.1233 -0.1454)
OKLCHoklch(45.86% 0.191 310.3)
XYZxyz(15.2040, 8.1913, 35.8949)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7828A4 #54A428
analogous
#3A28A4 #7828A4 #A42892
triadic
#7828A4 #A47828 #28A478
tetradic
#7828A4 #A43A28 #54A428 #2892A4
square
#7828A4 #A43A28 #54A428 #2892A4
split-complementary
#7828A4 #92A428 #28A43A
monochromatic
#301042 #541C73 #7828A4 #9A3ACF #B36BDB

Accessibility & contrast

On white

7.96
#7828A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7828A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7828A4
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7828A4#FFFFFF#000000##FFFFFF
##7828A41.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA7
Deuteranopia (green-blind)
#0952A1
Tritanopia (blue-blind)
#724564
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7828a4;
/* rgb */ color: rgb(120, 40, 164);
/* oklch */ color: oklch(45.9% 0.191 310.3);
Tailwind
colors: {
  custom: {
    50: '#a36ac0',
    500: '#7828a4',
    950: '#000000',
  },
}
SCSS
$custom: #7828a4;
$custom-light: #a36ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#7828a4",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 278.71,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.4586,
    "c": 0.19061,
    "h": 310.3
  },
  "luminance": 0.08191
}

Semantic roles & 50–950 ramp

primary
#7828A4
secondary
#87C166
accent
#E4447D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7828A4

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

Preview Lab → · Contrast checker → · Palette generator →

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