#7A28B7#7A28B7

#7A28B7 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.209 H 305.6°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7A28B7
RGBrgb(122, 40, 183)
HSLhsl(274, 64%, 44%)
HSVhsv(274, 78%, 72%)
CMYKcmyk(33.3%, 78.1%, 0%, 28.2%)
CIE-LABlab(36.13, 58.84, -59.79)
CIE-LCHlch(36.13, 83.89, 314.54°)
OKLaboklab(47.61% 0.122 -0.1703)
OKLCHoklch(47.61% 0.209 305.6)
XYZxyz(17.3302, 9.0742, 45.6291)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28B7 #65B728
analogous
#3228B7 #7A28B7 #B728AC
triadic
#7A28B7 #B77A28 #28B77A
tetradic
#7A28B7 #B73228 #65B728 #28ACB7
square
#7A28B7 #B73228 #65B728 #28ACB7
split-complementary
#7A28B7 #ACB728 #28B732
monochromatic
#371253 #591D85 #7A28B7 #9946D6 #B478E1

Accessibility & contrast

On white

7.46
#7A28B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A28B7
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28B7#FFFFFF#000000##FFFFFF
##7A28B71.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#0055B4
Tritanopia (blue-blind)
#6F4D6F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a28b7;
/* rgb */ color: rgb(122, 40, 183);
/* oklch */ color: oklch(47.6% 0.209 305.6);
Tailwind
colors: {
  custom: {
    50: '#a66cce',
    500: '#7a28b7',
    950: '#000000',
  },
}
SCSS
$custom: #7a28b7;
$custom-light: #a66cce;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28b7",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 274.406,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47607,
    "c": 0.20943,
    "h": 305.6
  },
  "luminance": 0.09074
}

Semantic roles & 50–950 ramp

primary
#7A28B7
secondary
#97C972
accent
#E74188
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A28B7

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

Preview Lab → · Contrast checker → · Palette generator →

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