#7A28BD#7A28BD

#7A28BD is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.1% C 0.215 H 304.0°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#7A28BD
RGBrgb(122, 40, 189)
HSLhsl(273, 65%, 45%)
HSVhsv(273, 79%, 74%)
CMYKcmyk(35.4%, 78.8%, 0%, 25.9%)
CIE-LABlab(36.61, 60.19, -62.54)
CIE-LCHlch(36.61, 86.80, 313.90°)
OKLaboklab(48.1% 0.1204 -0.1783)
OKLCHoklch(48.1% 0.215 304)
XYZxyz(17.9680, 9.3293, 48.9884)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28BD #6BBD28
analogous
#2F28BD #7A28BD #BD28B6
triadic
#7A28BD #BD7A28 #28BD7A
tetradic
#7A28BD #BD2F28 #6BBD28 #28B6BD
square
#7A28BD #BD2F28 #6BBD28 #28B6BD
split-complementary
#7A28BD #B6BD28 #28BD2F
monochromatic
#391358 #591D8A #7A28BD #984AD9 #B57CE3

Accessibility & contrast

On white

7.33
#7A28BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7A28BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28BD
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28BD#FFFFFF#000000##FFFFFF
##7A28BD1.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C1
Deuteranopia (green-blind)
#0056BA
Tritanopia (blue-blind)
#6D5073
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a28bd;
/* rgb */ color: rgb(122, 40, 189);
/* oklch */ color: oklch(48.1% 0.215 304.0);
Tailwind
colors: {
  custom: {
    50: '#a76cd2',
    500: '#7a28bd',
    950: '#000000',
  },
}
SCSS
$custom: #7a28bd;
$custom-light: #a76cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28bd",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 189
  },
  "hsl": {
    "h": 273.02,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48095,
    "c": 0.21519,
    "h": 304
  },
  "luminance": 0.09329
}

Semantic roles & 50–950 ramp

primary
#7A28BD
secondary
#9CCB75
accent
#E8408B
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100714
muted
#7F7A83

Preview Lab

Preview with #7A28BD

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

Preview Lab → · Contrast checker → · Palette generator →

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