#7A28AA#7A28AA

#7A28AA is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.6% C 0.197 H 309.3°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#7A28AA
RGBrgb(122, 40, 170)
HSLhsl(278, 62%, 41%)
HSVhsv(278, 76%, 67%)
CMYKcmyk(28.2%, 76.5%, 0%, 33.3%)
CIE-LABlab(35.12, 55.96, -53.69)
CIE-LCHlch(35.12, 77.56, 316.19°)
OKLaboklab(46.58% 0.1248 -0.1523)
OKLCHoklch(46.58% 0.197 309.3)
XYZxyz(16.0391, 8.5578, 38.8293)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28AA #58AA28
analogous
#3928AA #7A28AA #AA2899
triadic
#7A28AA #AA7A28 #28AA7A
tetradic
#7A28AA #AA3928 #58AA28 #2899AA
square
#7A28AA #AA3928 #58AA28 #2899AA
split-complementary
#7A28AA #99AA28 #28AA39
monochromatic
#331147 #561C78 #7A28AA #9B3ED2 #B56FDD

Accessibility & contrast

On white

7.75
#7A28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7A28AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28AA
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28AA#FFFFFF#000000##FFFFFF
##7A28AA1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAE
Deuteranopia (green-blind)
#0054A7
Tritanopia (blue-blind)
#734768
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a28aa;
/* rgb */ color: rgb(122, 40, 170);
/* oklch */ color: oklch(46.6% 0.197 309.3);
Tailwind
colors: {
  custom: {
    50: '#a56bc4',
    500: '#7a28aa',
    950: '#000000',
  },
}
SCSS
$custom: #7a28aa;
$custom-light: #a56bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28aa",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 277.846,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46583,
    "c": 0.19695,
    "h": 309.3
  },
  "luminance": 0.08557
}

Semantic roles & 50–950 ramp

primary
#7A28AA
secondary
#8BC46A
accent
#E5437F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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