#7A30A2#7A30A2

#7A30A2 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.8% C 0.180 H 311.1°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7A30A2
RGBrgb(122, 48, 162)
HSLhsl(279, 54%, 41%)
HSVhsv(279, 70%, 64%)
CMYKcmyk(24.7%, 70.4%, 0%, 36.5%)
CIE-LABlab(35.71, 50.87, -47.92)
CIE-LCHlch(35.71, 69.89, 316.71°)
OKLaboklab(46.82% 0.1181 -0.1354)
OKLCHoklch(46.82% 0.18 311.1)
XYZxyz(15.6033, 8.8605, 35.0637)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A30A2 #58A230
analogous
#4130A2 #7A30A2 #A23091
triadic
#7A30A2 #A27A30 #30A27A
tetradic
#7A30A2 #A24130 #58A230 #3091A2
square
#7A30A2 #A24130 #58A230 #3091A2
split-complementary
#7A30A2 #91A230 #30A241
monochromatic
#331444 #562273 #7A30A2 #9B47C8 #B576D6

Accessibility & contrast

On white

7.58
#7A30A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7A30A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A30A2
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A30A2#FFFFFF#000000##FFFFFF
##7A30A21.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A5
Deuteranopia (green-blind)
#20559F
Tritanopia (blue-blind)
#754865
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a30a2;
/* rgb */ color: rgb(122, 48, 162);
/* oklch */ color: oklch(46.8% 0.180 311.1);
Tailwind
colors: {
  custom: {
    50: '#a46fbe',
    500: '#7a30a2',
    950: '#000000',
  },
}
SCSS
$custom: #7a30a2;
$custom-light: #a46fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7a30a2",
  "rgb": {
    "r": 122,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 278.947,
    "s": 54.286,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46823,
    "c": 0.17972,
    "h": 311.1
  },
  "luminance": 0.0886
}

Semantic roles & 50–950 ramp

primary
#7A30A2
secondary
#8BBE6F
accent
#DE4A7E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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