#7A28A9#7A28A9

#7A28A9 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.5% C 0.196 H 309.6°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7A28A9
RGBrgb(122, 40, 169)
HSLhsl(278, 62%, 41%)
HSVhsv(278, 76%, 66%)
CMYKcmyk(27.8%, 76.3%, 0%, 33.7%)
CIE-LABlab(35.04, 55.74, -53.22)
CIE-LCHlch(35.04, 77.07, 316.33°)
OKLaboklab(46.51% 0.125 -0.1509)
OKLCHoklch(46.51% 0.196 309.6)
XYZxyz(15.9448, 8.5201, 38.3330)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28A9 #57A928
analogous
#3A28A9 #7A28A9 #A92897
triadic
#7A28A9 #A97A28 #28A97A
tetradic
#7A28A9 #A93A28 #57A928 #2897A9
square
#7A28A9 #A93A28 #57A928 #2897A9
split-complementary
#7A28A9 #97A928 #28A93A
monochromatic
#331146 #561C78 #7A28A9 #9B3DD1 #B56FDD

Accessibility & contrast

On white

7.77
#7A28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7A28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28A9
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28A9#FFFFFF#000000##FFFFFF
##7A28A91.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAD
Deuteranopia (green-blind)
#0054A6
Tritanopia (blue-blind)
#734767
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a28a9;
/* rgb */ color: rgb(122, 40, 169);
/* oklch */ color: oklch(46.5% 0.196 309.6);
Tailwind
colors: {
  custom: {
    50: '#a56bc3',
    500: '#7a28a9',
    950: '#000000',
  },
}
SCSS
$custom: #7a28a9;
$custom-light: #a56bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28a9",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 278.14,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46507,
    "c": 0.196,
    "h": 309.6
  },
  "luminance": 0.0852
}

Semantic roles & 50–950 ramp

primary
#7A28A9
secondary
#8AC469
accent
#E5437E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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