#7828B7#7828B7

#7828B7 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.4% C 0.209 H 304.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7828B7
RGBrgb(120, 40, 183)
HSLhsl(274, 64%, 44%)
HSVhsv(274, 78%, 72%)
CMYKcmyk(34.4%, 78.1%, 0%, 28.2%)
CIE-LABlab(35.85, 58.50, -60.26)
CIE-LCHlch(35.85, 83.99, 314.15°)
OKLaboklab(47.35% 0.1191 -0.1717)
OKLCHoklch(47.35% 0.209 304.8)
XYZxyz(17.0498, 8.9296, 45.6159)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7828B7 #67B728
analogous
#3028B7 #7828B7 #B728AE
triadic
#7828B7 #B77828 #28B778
tetradic
#7828B7 #B73028 #67B728 #28AEB7
square
#7828B7 #B73028 #67B728 #28AEB7
split-complementary
#7828B7 #AEB728 #28B730
monochromatic
#361253 #571D85 #7828B7 #9746D6 #B378E1

Accessibility & contrast

On white

7.54
#7828B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7828B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7828B7
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7828B7#FFFFFF#000000##FFFFFF
##7828B71.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BB
Deuteranopia (green-blind)
#0054B4
Tritanopia (blue-blind)
#6C4D6F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7828b7;
/* rgb */ color: rgb(120, 40, 183);
/* oklch */ color: oklch(47.4% 0.209 304.8);
Tailwind
colors: {
  custom: {
    50: '#a56bce',
    500: '#7828b7',
    950: '#000000',
  },
}
SCSS
$custom: #7828b7;
$custom-light: #a56bce;
$custom-dark: #000000;
JSON
{
  "hex": "#7828b7",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 273.566,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47353,
    "c": 0.20898,
    "h": 304.8
  },
  "luminance": 0.0893
}

Semantic roles & 50–950 ramp

primary
#7828B7
secondary
#98C972
accent
#E7418A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7828B7

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

Preview Lab → · Contrast checker → · Palette generator →

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