#7828B8#7828B8

#7828B8 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.4% C 0.210 H 304.5°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7828B8
RGBrgb(120, 40, 184)
HSLhsl(273, 64%, 44%)
HSVhsv(273, 78%, 72%)
CMYKcmyk(34.8%, 78.3%, 0%, 27.8%)
CIE-LABlab(35.93, 58.73, -60.72)
CIE-LCHlch(35.93, 84.47, 314.05°)
OKLaboklab(47.44% 0.1189 -0.173)
OKLCHoklch(47.44% 0.21 304.5)
XYZxyz(17.1543, 8.9714, 46.1660)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7828B8 #68B828
analogous
#3028B8 #7828B8 #B828B0
triadic
#7828B8 #B87828 #28B878
tetradic
#7828B8 #B83028 #68B828 #28B0B8
square
#7828B8 #B83028 #68B828 #28B0B8
split-complementary
#7828B8 #B0B828 #28B830
monochromatic
#361253 #571D86 #7828B8 #9746D7 #B379E2

Accessibility & contrast

On white

7.52
#7828B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7828B8
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7828B8#FFFFFF#000000##FFFFFF
##7828B81.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#6C4E70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7828b8;
/* rgb */ color: rgb(120, 40, 184);
/* oklch */ color: oklch(47.4% 0.210 304.5);
Tailwind
colors: {
  custom: {
    50: '#a56bce',
    500: '#7828b8',
    950: '#000000',
  },
}
SCSS
$custom: #7828b8;
$custom-light: #a56bce;
$custom-dark: #000000;
JSON
{
  "hex": "#7828b8",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 184
  },
  "hsl": {
    "h": 273.333,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47435,
    "c": 0.20995,
    "h": 304.5
  },
  "luminance": 0.08971
}

Semantic roles & 50–950 ramp

primary
#7828B8
secondary
#99CA72
accent
#E7418B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7828B8

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

Preview Lab → · Contrast checker → · Palette generator →

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