#7A28A4#7A28A4

#7A28A4 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.1% C 0.191 H 311.2°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7A28A4
RGBrgb(122, 40, 164)
HSLhsl(280, 61%, 40%)
HSVhsv(280, 76%, 64%)
CMYKcmyk(25.6%, 75.6%, 0%, 35.7%)
CIE-LABlab(34.67, 54.66, -50.81)
CIE-LCHlch(34.67, 74.63, 317.09°)
OKLaboklab(46.13% 0.126 -0.1439)
OKLCHoklch(46.13% 0.191 311.2)
XYZxyz(15.4844, 8.3359, 35.9081)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28A4 #52A428
analogous
#3C28A4 #7A28A4 #A42890
triadic
#7A28A4 #A47A28 #28A47A
tetradic
#7A28A4 #A43C28 #52A428 #2890A4
square
#7A28A4 #A43C28 #52A428 #2890A4
split-complementary
#7A28A4 #90A428 #28A43C
monochromatic
#311042 #551C73 #7A28A4 #9D3ACF #B56BDB

Accessibility & contrast

On white

7.87
#7A28A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7A28A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28A4
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28A4#FFFFFF#000000##FFFFFF
##7A28A41.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#1053A1
Tritanopia (blue-blind)
#754564
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a28a4;
/* rgb */ color: rgb(122, 40, 164);
/* oklch */ color: oklch(46.1% 0.191 311.2);
Tailwind
colors: {
  custom: {
    50: '#a56bc0',
    500: '#7a28a4',
    950: '#000000',
  },
}
SCSS
$custom: #7a28a4;
$custom-light: #a56bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28a4",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 164
  },
  "hsl": {
    "h": 279.677,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.46129,
    "c": 0.19122,
    "h": 311.2
  },
  "luminance": 0.08335
}

Semantic roles & 50–950 ramp

primary
#7A28A4
secondary
#85C166
accent
#E4447A
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A28A4

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

Preview Lab → · Contrast checker → · Palette generator →

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