#7A28B4#7A28B4

#7A28B4 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.4% C 0.207 H 306.4°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7A28B4
RGBrgb(122, 40, 180)
HSLhsl(275, 64%, 43%)
HSVhsv(275, 78%, 71%)
CMYKcmyk(32.2%, 77.8%, 0%, 29.4%)
CIE-LABlab(35.89, 58.17, -58.40)
CIE-LCHlch(35.89, 82.43, 314.89°)
OKLaboklab(47.37% 0.1227 -0.1662)
OKLCHoklch(47.37% 0.207 306.4)
XYZxyz(17.0212, 8.9506, 44.0021)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A28B4 #62B428
analogous
#3428B4 #7A28B4 #B428A8
triadic
#7A28B4 #B47A28 #28B47A
tetradic
#7A28B4 #B43428 #62B428 #28A8B4
square
#7A28B4 #B43428 #62B428 #28A8B4
split-complementary
#7A28B4 #A8B428 #28B434
monochromatic
#361250 #581D82 #7A28B4 #9944D5 #B476E1

Accessibility & contrast

On white

7.53
#7A28B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7A28B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A28B4
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A28B4#FFFFFF#000000##FFFFFF
##7A28B41.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0055B1
Tritanopia (blue-blind)
#704C6D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a28b4;
/* rgb */ color: rgb(122, 40, 180);
/* oklch */ color: oklch(47.4% 0.207 306.4);
Tailwind
colors: {
  custom: {
    50: '#a66bcb',
    500: '#7a28b4',
    950: '#000000',
  },
}
SCSS
$custom: #7a28b4;
$custom-light: #a66bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a28b4",
  "rgb": {
    "r": 122,
    "g": 40,
    "b": 180
  },
  "hsl": {
    "h": 275.143,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47366,
    "c": 0.20654,
    "h": 306.4
  },
  "luminance": 0.0895
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A28B4

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

Preview Lab → · Contrast checker → · Palette generator →

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