#7A28B8#7A28B8

#7A28B8 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.7% C 0.210 H 305.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7A28B8
RGBrgb(122, 40, 184)
HSLhsl(274, 64%, 44%)
HSVhsv(274, 78%, 72%)
CMYKcmyk(33.7%, 78.3%, 0%, 27.8%)
CIE-LABlab(36.21, 59.06, -60.25)
CIE-LCHlch(36.21, 84.38, 314.43°)
OKLaboklab(47.69% 0.1217 -0.1716)
OKLCHoklch(47.69% 0.21 305.3)
XYZxyz(17.4346, 9.1160, 46.1792)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28B8 #66B828
analogous
#3228B8 #7A28B8 #B828AE
triadic
#7A28B8 #B87A28 #28B87A
tetradic
#7A28B8 #B83228 #66B828 #28AEB8
square
#7A28B8 #B83228 #66B828 #28AEB8
split-complementary
#7A28B8 #AEB828 #28B832
monochromatic
#371253 #591D86 #7A28B8 #9946D7 #B579E2

Accessibility & contrast

On white

7.44
#7A28B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7A28B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28B8
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28B8#FFFFFF#000000##FFFFFF
##7A28B81.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a28b8;
/* rgb */ color: rgb(122, 40, 184);
/* oklch */ color: oklch(47.7% 0.210 305.3);
Tailwind
colors: {
  custom: {
    50: '#a66cce',
    500: '#7a28b8',
    950: '#000000',
  },
}
SCSS
$custom: #7a28b8;
$custom-light: #a66cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28b8",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 184
  },
  "hsl": {
    "h": 274.167,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47687,
    "c": 0.21039,
    "h": 305.3
  },
  "luminance": 0.09116
}

Semantic roles & 50–950 ramp

primary
#7A28B8
secondary
#98CA72
accent
#E74188
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A28B8

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

Preview Lab → · Contrast checker → · Palette generator →

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