#7A28C4#7A28C4

#7A28C4 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.7% C 0.222 H 302.3°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#7A28C4
RGBrgb(122, 40, 196)
HSLhsl(272, 66%, 46%)
HSVhsv(272, 80%, 77%)
CMYKcmyk(37.8%, 79.6%, 0%, 23.1%)
CIE-LABlab(37.19, 61.78, -65.71)
CIE-LCHlch(37.19, 90.19, 313.24°)
OKLaboklab(48.68% 0.1185 -0.1876)
OKLCHoklch(48.68% 0.222 302.3)
XYZxyz(18.7462, 9.6406, 53.0871)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28C4 #72C428
analogous
#2C28C4 #7A28C4 #C428C0
triadic
#7A28C4 #C47A28 #28C47A
tetradic
#7A28C4 #C42C28 #72C428 #28C0C4
square
#7A28C4 #C42C28 #72C428 #28C0C4
split-complementary
#7A28C4 #C0C428 #28C42C
monochromatic
#3B135E #5A1E91 #7A28C4 #984EDB #B681E5

Accessibility & contrast

On white

7.17
#7A28C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7A28C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28C4
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28C4#FFFFFF#000000##FFFFFF
##7A28C41.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#0057C1
Tritanopia (blue-blind)
#6A5377
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a28c4;
/* rgb */ color: rgb(122, 40, 196);
/* oklch */ color: oklch(48.7% 0.222 302.3);
Tailwind
colors: {
  custom: {
    50: '#a76cd7',
    500: '#7a28c4',
    950: '#000000',
  },
}
SCSS
$custom: #7a28c4;
$custom-light: #a76cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28c4",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 196
  },
  "hsl": {
    "h": 271.538,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.48678,
    "c": 0.22191,
    "h": 302.3
  },
  "luminance": 0.09641
}

Semantic roles & 50–950 ramp

primary
#7A28C4
secondary
#A2CE7A
accent
#E93F90
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7A28C4

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

Preview Lab → · Contrast checker → · Palette generator →

#7A28C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva