#7A30B4#7A30B4

#7A30B4 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.2% C 0.198 H 305.7°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7A30B4
RGBrgb(122, 48, 180)
HSLhsl(274, 58%, 45%)
HSVhsv(274, 73%, 71%)
CMYKcmyk(32.2%, 73.3%, 0%, 29.4%)
CIE-LABlab(37.02, 54.95, -56.57)
CIE-LCHlch(37.02, 78.86, 314.17°)
OKLaboklab(48.16% 0.1154 -0.1608)
OKLCHoklch(48.16% 0.198 305.7)
XYZxyz(17.3194, 9.5469, 44.1015)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A30B4 #6AB430
analogous
#3830B4 #7A30B4 #B430AC
triadic
#7A30B4 #B47A30 #30B47A
tetradic
#7A30B4 #B43830 #6AB430 #30ACB4
square
#7A30B4 #B43830 #6AB430 #30ACB4
split-complementary
#7A30B4 #ACB430 #30B438
monochromatic
#391653 #592384 #7A30B4 #9851D1 #B581DD

Accessibility & contrast

On white

7.22
#7A30B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7A30B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A30B4
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A30B4#FFFFFF#000000##FFFFFF
##7A30B41.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#6F506F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a30b4;
/* rgb */ color: rgb(122, 48, 180);
/* oklch */ color: oklch(48.2% 0.198 305.7);
Tailwind
colors: {
  custom: {
    50: '#a66fcb',
    500: '#7a30b4',
    950: '#000000',
  },
}
SCSS
$custom: #7a30b4;
$custom-light: #a66fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a30b4",
  "rgb": {
    "r": 122,
    "g": 48,
    "b": 180
  },
  "hsl": {
    "h": 273.636,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4816,
    "c": 0.19797,
    "h": 305.7
  },
  "luminance": 0.09547
}

Semantic roles & 50–950 ramp

primary
#7A30B4
secondary
#9BC679
accent
#E1478B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A30B4

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

Preview Lab → · Contrast checker → · Palette generator →

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