#7828AB#7828AB

#7828AB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.197 H 308.1°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#7828AB
RGBrgb(120, 40, 171)
HSLhsl(277, 62%, 41%)
HSVhsv(277, 77%, 67%)
CMYKcmyk(29.8%, 76.6%, 0%, 32.9%)
CIE-LABlab(34.91, 55.81, -54.65)
CIE-LCHlch(34.91, 78.11, 315.60°)
OKLaboklab(46.4% 0.1219 -0.1552)
OKLCHoklch(46.4% 0.197 308.1)
XYZxyz(15.8537, 8.4512, 39.3162)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7828AB #5BAB28
analogous
#3728AB #7828AB #AB289D
triadic
#7828AB #AB7828 #28AB78
tetradic
#7828AB #AB3728 #5BAB28 #289DAB
square
#7828AB #AB3728 #5BAB28 #289DAB
split-complementary
#7828AB #9DAB28 #28AB37
monochromatic
#321148 #551C79 #7828AB #983ED2 #B370DE

Accessibility & contrast

On white

7.81
#7828AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7828AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7828AB
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7828AB#FFFFFF#000000##FFFFFF
##7828AB1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAF
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#704868
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7828ab;
/* rgb */ color: rgb(120, 40, 171);
/* oklch */ color: oklch(46.4% 0.197 308.1);
Tailwind
colors: {
  custom: {
    50: '#a46bc5',
    500: '#7828ab',
    950: '#000000',
  },
}
SCSS
$custom: #7828ab;
$custom-light: #a46bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7828ab",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 276.641,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46397,
    "c": 0.19736,
    "h": 308.1
  },
  "luminance": 0.08451
}

Semantic roles & 50–950 ramp

primary
#7828AB
secondary
#8DC46A
accent
#E54382
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7828AB

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

Preview Lab → · Contrast checker → · Palette generator →

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