#7A28AB#7A28AB

#7A28AB is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.7% C 0.198 H 309.0°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7A28AB
RGBrgb(122, 40, 171)
HSLhsl(278, 62%, 41%)
HSVhsv(278, 77%, 67%)
CMYKcmyk(28.7%, 76.6%, 0%, 32.9%)
CIE-LABlab(35.19, 56.18, -54.17)
CIE-LCHlch(35.19, 78.04, 316.05°)
OKLaboklab(46.66% 0.1246 -0.1537)
OKLCHoklch(46.66% 0.198 309)
XYZxyz(16.1340, 8.5957, 39.3294)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28AB #59AB28
analogous
#3928AB #7A28AB #AB289B
triadic
#7A28AB #AB7A28 #28AB7A
tetradic
#7A28AB #AB3928 #59AB28 #289BAB
square
#7A28AB #AB3928 #59AB28 #289BAB
split-complementary
#7A28AB #9BAB28 #28AB39
monochromatic
#331148 #571C79 #7A28AB #9B3ED2 #B570DE

Accessibility & contrast

On white

7.72
#7A28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7A28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28AB
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28AB#FFFFFF#000000##FFFFFF
##7A28AB1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#734868
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a28ab;
/* rgb */ color: rgb(122, 40, 171);
/* oklch */ color: oklch(46.7% 0.198 309.0);
Tailwind
colors: {
  custom: {
    50: '#a56bc5',
    500: '#7a28ab',
    950: '#000000',
  },
}
SCSS
$custom: #7a28ab;
$custom-light: #a56bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28ab",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 277.557,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4666,
    "c": 0.19791,
    "h": 309
  },
  "luminance": 0.08595
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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