#7A28A2#7A28A2

#7A28A2 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.189 H 311.8°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7A28A2
RGBrgb(122, 40, 162)
HSLhsl(280, 60%, 40%)
HSVhsv(280, 75%, 64%)
CMYKcmyk(24.7%, 75.3%, 0%, 36.5%)
CIE-LABlab(34.53, 54.23, -49.84)
CIE-LCHlch(34.53, 73.66, 317.42°)
OKLaboklab(45.98% 0.1263 -0.141)
OKLCHoklch(45.98% 0.189 311.8)
XYZxyz(15.3052, 8.2642, 34.9643)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28A2 #50A228
analogous
#3D28A2 #7A28A2 #A2288D
triadic
#7A28A2 #A27A28 #28A27A
tetradic
#7A28A2 #A23D28 #50A228 #288DA2
square
#7A28A2 #A23D28 #50A228 #288DA2
split-complementary
#7A28A2 #8DA228 #28A23D
monochromatic
#301040 #551C71 #7A28A2 #9D39CE #B56ADA

Accessibility & contrast

On white

7.92
#7A28A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7A28A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28A2
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28A2#FFFFFF#000000##FFFFFF
##7A28A21.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#15539F
Tritanopia (blue-blind)
#754463
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7a28a2;
/* rgb */ color: rgb(122, 40, 162);
/* oklch */ color: oklch(46.0% 0.189 311.8);
Tailwind
colors: {
  custom: {
    50: '#a56bbe',
    500: '#7a28a2',
    950: '#000000',
  },
}
SCSS
$custom: #7a28a2;
$custom-light: #a56bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28a2",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 280.328,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4598,
    "c": 0.18931,
    "h": 311.8
  },
  "luminance": 0.08264
}

Semantic roles & 50–950 ramp

primary
#7A28A2
secondary
#83C165
accent
#E44478
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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