#7A28B6#7A28B6

#7A28B6 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.5% C 0.208 H 305.9°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7A28B6
RGBrgb(122, 40, 182)
HSLhsl(275, 64%, 44%)
HSVhsv(275, 78%, 71%)
CMYKcmyk(33%, 78%, 0%, 28.6%)
CIE-LABlab(36.05, 58.62, -59.33)
CIE-LCHlch(36.05, 83.40, 314.65°)
OKLaboklab(47.53% 0.1222 -0.1689)
OKLCHoklch(47.53% 0.208 305.9)
XYZxyz(17.2265, 9.0327, 45.0829)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28B6 #64B628
analogous
#3328B6 #7A28B6 #B628AB
triadic
#7A28B6 #B67A28 #28B67A
tetradic
#7A28B6 #B63328 #64B628 #28ABB6
square
#7A28B6 #B63328 #64B628 #28ABB6
split-complementary
#7A28B6 #ABB628 #28B633
monochromatic
#371252 #581D84 #7A28B6 #9945D6 #B477E1

Accessibility & contrast

On white

7.48
#7A28B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7A28B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28B6
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28B6#FFFFFF#000000##FFFFFF
##7A28B61.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BA
Deuteranopia (green-blind)
#0055B3
Tritanopia (blue-blind)
#6F4D6F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a28b6;
/* rgb */ color: rgb(122, 40, 182);
/* oklch */ color: oklch(47.5% 0.208 305.9);
Tailwind
colors: {
  custom: {
    50: '#a66ccd',
    500: '#7a28b6',
    950: '#000000',
  },
}
SCSS
$custom: #7a28b6;
$custom-light: #a66ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28b6",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 182
  },
  "hsl": {
    "h": 274.648,
    "s": 63.964,
    "l": 43.529
  },
  "oklch": {
    "l": 0.47526,
    "c": 0.20846,
    "h": 305.9
  },
  "luminance": 0.09033
}

Semantic roles & 50–950 ramp

primary
#7A28B6
secondary
#96C971
accent
#E74187
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A28B6

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

Preview Lab → · Contrast checker → · Palette generator →

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