#7828B2#7828B2

#7828B2 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.9% C 0.204 H 306.1°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#7828B2
RGBrgb(120, 40, 178)
HSLhsl(275, 63%, 43%)
HSVhsv(275, 78%, 70%)
CMYKcmyk(32.6%, 77.5%, 0%, 30.2%)
CIE-LABlab(35.45, 57.37, -57.94)
CIE-LCHlch(35.45, 81.54, 314.72°)
OKLaboklab(46.95% 0.1204 -0.1649)
OKLCHoklch(46.95% 0.204 306.1)
XYZxyz(16.5386, 8.7252, 42.9237)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7828B2 #62B228
analogous
#3328B2 #7828B2 #B228A7
triadic
#7828B2 #B27828 #28B278
tetradic
#7828B2 #B23328 #62B228 #28A7B2
square
#7828B2 #B23328 #62B228 #28A7B2
split-complementary
#7828B2 #A7B228 #28B233
monochromatic
#35124E #561D80 #7828B2 #9743D5 #B375E0

Accessibility & contrast

On white

7.65
#7828B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7828B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7828B2
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7828B2#FFFFFF#000000##FFFFFF
##7828B21.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#6E4B6C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7828b2;
/* rgb */ color: rgb(120, 40, 178);
/* oklch */ color: oklch(46.9% 0.204 306.1);
Tailwind
colors: {
  custom: {
    50: '#a46bca',
    500: '#7828b2',
    950: '#000000',
  },
}
SCSS
$custom: #7828b2;
$custom-light: #a46bca;
$custom-dark: #000000;
JSON
{
  "hex": "#7828b2",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 274.783,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46949,
    "c": 0.20414,
    "h": 306.1
  },
  "luminance": 0.08725
}

Semantic roles & 50–950 ramp

primary
#7828B2
secondary
#94C76F
accent
#E64187
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7828B2

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

Preview Lab → · Contrast checker → · Palette generator →

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