#7828A8#7828A8

#7828A8 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.2% C 0.194 H 309.0°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7828A8
RGBrgb(120, 40, 168)
HSLhsl(278, 62%, 41%)
HSVhsv(278, 76%, 66%)
CMYKcmyk(28.6%, 76.2%, 0%, 34.1%)
CIE-LABlab(34.68, 55.15, -53.22)
CIE-LCHlch(34.68, 76.64, 316.02°)
OKLaboklab(46.17% 0.1225 -0.151)
OKLCHoklch(46.17% 0.194 309)
XYZxyz(15.5710, 8.3381, 37.8273)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7828A8 #58A828
analogous
#3828A8 #7828A8 #A82898
triadic
#7828A8 #A87828 #28A878
tetradic
#7828A8 #A83828 #58A828 #2898A8
square
#7828A8 #A83828 #58A828 #2898A8
split-complementary
#7828A8 #98A828 #28A838
monochromatic
#311045 #551C77 #7828A8 #993DD1 #B36EDC

Accessibility & contrast

On white

7.87
#7828A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7828A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7828A8
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7828A8#FFFFFF#000000##FFFFFF
##7828A81.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAC
Deuteranopia (green-blind)
#0053A5
Tritanopia (blue-blind)
#714767
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7828a8;
/* rgb */ color: rgb(120, 40, 168);
/* oklch */ color: oklch(46.2% 0.194 309.0);
Tailwind
colors: {
  custom: {
    50: '#a46bc3',
    500: '#7828a8',
    950: '#000000',
  },
}
SCSS
$custom: #7828a8;
$custom-light: #a46bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7828a8",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 277.5,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46165,
    "c": 0.19446,
    "h": 309
  },
  "luminance": 0.08338
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7828A8

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

Preview Lab → · Contrast checker → · Palette generator →

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