#7A28B9#7A28B9

#7A28B9 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.211 H 305.1°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#7A28B9
RGBrgb(122, 40, 185)
HSLhsl(274, 64%, 44%)
HSVhsv(274, 78%, 73%)
CMYKcmyk(34.1%, 78.4%, 0%, 27.5%)
CIE-LABlab(36.29, 59.29, -60.71)
CIE-LCHlch(36.29, 84.86, 314.32°)
OKLaboklab(47.77% 0.1215 -0.173)
OKLCHoklch(47.77% 0.211 305.1)
XYZxyz(17.5398, 9.1580, 46.7332)
Luminance0.0916 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28B9 #67B928
analogous
#3228B9 #7A28B9 #B928B0
triadic
#7A28B9 #B97A28 #28B97A
tetradic
#7A28B9 #B93228 #67B928 #28B0B9
square
#7A28B9 #B93228 #67B928 #28B0B9
split-complementary
#7A28B9 #B0B928 #28B932
monochromatic
#381254 #591D87 #7A28B9 #9947D7 #B579E2

Accessibility & contrast

On white

7.42
#7A28B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7A28B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28B9
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28B9#FFFFFF#000000##FFFFFF
##7A28B91.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BD
Deuteranopia (green-blind)
#0055B6
Tritanopia (blue-blind)
#6E4E70
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a28b9;
/* rgb */ color: rgb(122, 40, 185);
/* oklch */ color: oklch(47.8% 0.211 305.1);
Tailwind
colors: {
  custom: {
    50: '#a66ccf',
    500: '#7a28b9',
    950: '#000000',
  },
}
SCSS
$custom: #7a28b9;
$custom-light: #a66ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28b9",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 185
  },
  "hsl": {
    "h": 273.931,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47768,
    "c": 0.21135,
    "h": 305.1
  },
  "luminance": 0.09158
}

Semantic roles & 50–950 ramp

primary
#7A28B9
secondary
#99CA73
accent
#E74089
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A28B9

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

Preview Lab → · Contrast checker → · Palette generator →

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