#7A28A8#7A28A8

#7A28A8 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.195 H 309.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7A28A8
RGBrgb(122, 40, 168)
HSLhsl(278, 62%, 41%)
HSVhsv(278, 76%, 66%)
CMYKcmyk(27.4%, 76.2%, 0%, 34.1%)
CIE-LABlab(34.97, 55.53, -52.74)
CIE-LCHlch(34.97, 76.58, 316.48°)
OKLaboklab(46.43% 0.1252 -0.1495)
OKLCHoklch(46.43% 0.195 309.9)
XYZxyz(15.8513, 8.4827, 37.8405)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28A8 #56A828
analogous
#3A28A8 #7A28A8 #A82896
triadic
#7A28A8 #A87A28 #28A87A
tetradic
#7A28A8 #A83A28 #56A828 #2896A8
square
#7A28A8 #A83A28 #56A828 #2896A8
split-complementary
#7A28A8 #96A828 #28A83A
monochromatic
#321045 #561C77 #7A28A8 #9B3DD1 #B56EDC

Accessibility & contrast

On white

7.79
#7A28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A28A8
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28A8#FFFFFF#000000##FFFFFF
##7A28A81.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0253A5
Tritanopia (blue-blind)
#734767
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7a28a8;
/* rgb */ color: rgb(122, 40, 168);
/* oklch */ color: oklch(46.4% 0.195 309.9);
Tailwind
colors: {
  custom: {
    50: '#a56bc3',
    500: '#7a28a8',
    950: '#000000',
  },
}
SCSS
$custom: #7a28a8;
$custom-light: #a56bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28a8",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 278.438,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4643,
    "c": 0.19504,
    "h": 309.9
  },
  "luminance": 0.08482
}

Semantic roles & 50–950 ramp

primary
#7A28A8
secondary
#89C369
accent
#E5437D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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