#7828A5#7828A5

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

Color values

HEX#7828A5
RGBrgb(120, 40, 165)
HSLhsl(278, 61%, 40%)
HSVhsv(278, 76%, 65%)
CMYKcmyk(27.3%, 75.8%, 0%, 35.3%)
CIE-LABlab(34.45, 54.49, -51.78)
CIE-LCHlch(34.45, 75.17, 316.46°)
OKLaboklab(45.93% 0.1231 -0.1468)
OKLCHoklch(45.93% 0.192 310)
XYZxyz(15.2947, 8.2276, 36.3724)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7828A5 #55A528
analogous
#3928A5 #7828A5 #A52894
triadic
#7828A5 #A57828 #28A578
tetradic
#7828A5 #A53928 #55A528 #2894A5
square
#7828A5 #A53928 #55A528 #2894A5
split-complementary
#7828A5 #94A528 #28A539
monochromatic
#301042 #541C74 #7828A5 #9A3BCF #B36CDB

Accessibility & contrast

On white

7.94
#7828A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7828A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7828A5
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7828A5#FFFFFF#000000##FFFFFF
##7828A51.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0552A2
Tritanopia (blue-blind)
#724665
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7828a5;
/* rgb */ color: rgb(120, 40, 165);
/* oklch */ color: oklch(45.9% 0.192 310.0);
Tailwind
colors: {
  custom: {
    50: '#a46bc0',
    500: '#7828a5',
    950: '#000000',
  },
}
SCSS
$custom: #7828a5;
$custom-light: #a46bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7828a5",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 165
  },
  "hsl": {
    "h": 278.4,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45935,
    "c": 0.19156,
    "h": 310
  },
  "luminance": 0.08227
}

Semantic roles & 50–950 ramp

primary
#7828A5
secondary
#88C267
accent
#E4447D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7828A5

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

Preview Lab → · Contrast checker → · Palette generator →

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