#7828B4#7828B4

#7828B4 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.1% C 0.206 H 305.6°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#7828B4
RGBrgb(120, 40, 180)
HSLhsl(274, 64%, 43%)
HSVhsv(274, 78%, 71%)
CMYKcmyk(33.3%, 77.8%, 0%, 29.4%)
CIE-LABlab(35.61, 57.83, -58.87)
CIE-LCHlch(35.61, 82.52, 314.49°)
OKLaboklab(47.11% 0.1199 -0.1676)
OKLCHoklch(47.11% 0.206 305.6)
XYZxyz(16.7409, 8.8061, 43.9890)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7828B4 #64B428
analogous
#3228B4 #7828B4 #B428AA
triadic
#7828B4 #B47828 #28B478
tetradic
#7828B4 #B43228 #64B428 #28AAB4
square
#7828B4 #B43228 #64B428 #28AAB4
split-complementary
#7828B4 #AAB428 #28B432
monochromatic
#351250 #571D82 #7828B4 #9744D5 #B376E1

Accessibility & contrast

On white

7.61
#7828B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7828B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7828B4
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7828B4#FFFFFF#000000##FFFFFF
##7828B41.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#6D4C6D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7828b4;
/* rgb */ color: rgb(120, 40, 180);
/* oklch */ color: oklch(47.1% 0.206 305.6);
Tailwind
colors: {
  custom: {
    50: '#a56bcb',
    500: '#7828b4',
    950: '#000000',
  },
}
SCSS
$custom: #7828b4;
$custom-light: #a56bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7828b4",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 274.286,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4711,
    "c": 0.20607,
    "h": 305.6
  },
  "luminance": 0.08806
}

Semantic roles & 50–950 ramp

primary
#7828B4
secondary
#96C870
accent
#E74188
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7828B4

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

Preview Lab → · Contrast checker → · Palette generator →

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