#7A28A3#7A28A3

#7A28A3 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.1% C 0.190 H 311.5°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7A28A3
RGBrgb(122, 40, 163)
HSLhsl(280, 61%, 40%)
HSVhsv(280, 75%, 64%)
CMYKcmyk(25.2%, 75.5%, 0%, 36.1%)
CIE-LABlab(34.60, 54.45, -50.33)
CIE-LCHlch(34.60, 74.14, 317.25°)
OKLaboklab(46.05% 0.1261 -0.1424)
OKLCHoklch(46.05% 0.19 311.5)
XYZxyz(15.3944, 8.2999, 35.4343)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28A3 #51A328
analogous
#3D28A3 #7A28A3 #A3288F
triadic
#7A28A3 #A37A28 #28A37A
tetradic
#7A28A3 #A33D28 #51A328 #288FA3
square
#7A28A3 #A33D28 #51A328 #288FA3
split-complementary
#7A28A3 #8FA328 #28A33D
monochromatic
#301041 #551C72 #7A28A3 #9D3ACF #B56BDB

Accessibility & contrast

On white

7.89
#7A28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7A28A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28A3
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28A3#FFFFFF#000000##FFFFFF
##7A28A31.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA6
Deuteranopia (green-blind)
#1253A0
Tritanopia (blue-blind)
#754464
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a28a3;
/* rgb */ color: rgb(122, 40, 163);
/* oklch */ color: oklch(46.1% 0.190 311.5);
Tailwind
colors: {
  custom: {
    50: '#a56bbf',
    500: '#7a28a3',
    950: '#000000',
  },
}
SCSS
$custom: #7a28a3;
$custom-light: #a56bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28a3",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 280,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.46054,
    "c": 0.19026,
    "h": 311.5
  },
  "luminance": 0.083
}

Semantic roles & 50–950 ramp

primary
#7A28A3
secondary
#84C166
accent
#E44479
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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