#7A28A6#7A28A6

#7A28A6 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.3% C 0.193 H 310.6°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7A28A6
RGBrgb(122, 40, 166)
HSLhsl(279, 61%, 40%)
HSVhsv(279, 76%, 65%)
CMYKcmyk(26.5%, 75.9%, 0%, 34.9%)
CIE-LABlab(34.82, 55.09, -51.78)
CIE-LCHlch(34.82, 75.61, 316.78°)
OKLaboklab(46.28% 0.1256 -0.1467)
OKLCHoklch(46.28% 0.193 310.6)
XYZxyz(15.6664, 8.4087, 36.8668)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28A6 #54A628
analogous
#3B28A6 #7A28A6 #A62893
triadic
#7A28A6 #A67A28 #28A67A
tetradic
#7A28A6 #A63B28 #54A628 #2893A6
square
#7A28A6 #A63B28 #54A628 #2893A6
split-complementary
#7A28A6 #93A628 #28A63B
monochromatic
#321043 #561C75 #7A28A6 #9C3BD0 #B56DDC

Accessibility & contrast

On white

7.83
#7A28A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7A28A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28A6
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28A6#FFFFFF#000000##FFFFFF
##7A28A61.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAA
Deuteranopia (green-blind)
#0953A3
Tritanopia (blue-blind)
#744665
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a28a6;
/* rgb */ color: rgb(122, 40, 166);
/* oklch */ color: oklch(46.3% 0.193 310.6);
Tailwind
colors: {
  custom: {
    50: '#a56bc1',
    500: '#7a28a6',
    950: '#000000',
  },
}
SCSS
$custom: #7a28a6;
$custom-light: #a56bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28a6",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 279.048,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46279,
    "c": 0.19313,
    "h": 310.6
  },
  "luminance": 0.08408
}

Semantic roles & 50–950 ramp

primary
#7A28A6
secondary
#87C267
accent
#E4447C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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