#7828B5#7828B5

#7828B5 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.2% C 0.207 H 305.3°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7828B5
RGBrgb(120, 40, 181)
HSLhsl(274, 64%, 43%)
HSVhsv(274, 78%, 71%)
CMYKcmyk(33.7%, 77.9%, 0%, 29%)
CIE-LABlab(35.69, 58.05, -59.33)
CIE-LCHlch(35.69, 83.01, 314.37°)
OKLaboklab(47.19% 0.1196 -0.169)
OKLCHoklch(47.19% 0.207 305.3)
XYZxyz(16.8431, 8.8470, 44.5274)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7828B5 #65B528
analogous
#3228B5 #7828B5 #B528AB
triadic
#7828B5 #B57828 #28B578
tetradic
#7828B5 #B53228 #65B528 #28ABB5
square
#7828B5 #B53228 #65B528 #28ABB5
split-complementary
#7828B5 #ABB528 #28B532
monochromatic
#361251 #571D83 #7828B5 #9744D6 #B377E1

Accessibility & contrast

On white

7.58
#7828B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7828B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7828B5
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7828B5#FFFFFF#000000##FFFFFF
##7828B51.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#0054B2
Tritanopia (blue-blind)
#6D4C6E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7828b5;
/* rgb */ color: rgb(120, 40, 181);
/* oklch */ color: oklch(47.2% 0.207 305.3);
Tailwind
colors: {
  custom: {
    50: '#a56bcc',
    500: '#7828b5',
    950: '#000000',
  },
}
SCSS
$custom: #7828b5;
$custom-light: #a56bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7828b5",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 274.043,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47191,
    "c": 0.20704,
    "h": 305.3
  },
  "luminance": 0.08847
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7828B5

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

Preview Lab → · Contrast checker → · Palette generator →

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