#7828C5#7828C5

#7828C5 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.5% C 0.223 H 301.2°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7828C5
RGBrgb(120, 40, 197)
HSLhsl(271, 66%, 46%)
HSVhsv(271, 80%, 77%)
CMYKcmyk(39.1%, 79.7%, 0%, 22.7%)
CIE-LABlab(37.01, 61.71, -66.60)
CIE-LCHlch(37.01, 90.79, 312.82°)
OKLaboklab(48.52% 0.1153 -0.1903)
OKLCHoklch(48.52% 0.223 301.2)
XYZxyz(18.5801, 9.5417, 53.6754)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7828C5 #75C528
analogous
#2928C5 #7828C5 #C528C4
triadic
#7828C5 #C57828 #28C578
tetradic
#7828C5 #C52928 #75C528 #28C4C5
square
#7828C5 #C52928 #75C528 #28C4C5
split-complementary
#7828C5 #C4C528 #28C529
monochromatic
#3A135F #591E92 #7828C5 #964FDB #B582E6

Accessibility & contrast

On white

7.22
#7828C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7828C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7828C5
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7828C5#FFFFFF#000000##FFFFFF
##7828C51.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#0056C2
Tritanopia (blue-blind)
#675377
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7828c5;
/* rgb */ color: rgb(120, 40, 197);
/* oklch */ color: oklch(48.5% 0.223 301.2);
Tailwind
colors: {
  custom: {
    50: '#a66cd8',
    500: '#7828c5',
    950: '#000000',
  },
}
SCSS
$custom: #7828c5;
$custom-light: #a66cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7828c5",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 197
  },
  "hsl": {
    "h": 270.573,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.4852,
    "c": 0.22255,
    "h": 301.2
  },
  "luminance": 0.09542
}

Semantic roles & 50–950 ramp

primary
#7828C5
secondary
#A4CE7A
accent
#E93F92
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100715
muted
#7F7A83

Preview Lab

Preview with #7828C5

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

Preview Lab → · Contrast checker → · Palette generator →

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