#7A28B5#7A28B5

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

Color values

HEX#7A28B5
RGBrgb(122, 40, 181)
HSLhsl(275, 64%, 43%)
HSVhsv(275, 78%, 71%)
CMYKcmyk(32.6%, 77.9%, 0%, 29%)
CIE-LABlab(35.97, 58.39, -58.87)
CIE-LCHlch(35.97, 82.92, 314.77°)
OKLaboklab(47.45% 0.1224 -0.1675)
OKLCHoklch(47.45% 0.208 306.2)
XYZxyz(17.1235, 8.9915, 44.5406)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28B5 #63B528
analogous
#3428B5 #7A28B5 #B528A9
triadic
#7A28B5 #B57A28 #28B57A
tetradic
#7A28B5 #B53428 #63B528 #28A9B5
square
#7A28B5 #B53428 #63B528 #28A9B5
split-complementary
#7A28B5 #A9B528 #28B534
monochromatic
#361251 #581D83 #7A28B5 #9944D6 #B477E1

Accessibility & contrast

On white

7.50
#7A28B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7A28B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28B5
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28B5#FFFFFF#000000##FFFFFF
##7A28B51.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#0055B2
Tritanopia (blue-blind)
#6F4C6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a28b5;
/* rgb */ color: rgb(122, 40, 181);
/* oklch */ color: oklch(47.4% 0.208 306.2);
Tailwind
colors: {
  custom: {
    50: '#a66ccc',
    500: '#7a28b5',
    950: '#000000',
  },
}
SCSS
$custom: #7a28b5;
$custom-light: #a66ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28b5",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 181
  },
  "hsl": {
    "h": 274.894,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47446,
    "c": 0.20751,
    "h": 306.2
  },
  "luminance": 0.08991
}

Semantic roles & 50–950 ramp

primary
#7A28B5
secondary
#95C870
accent
#E74186
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A28B5

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

Preview Lab → · Contrast checker → · Palette generator →

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