#7A30B5#7A30B5

#7A30B5 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.2% C 0.199 H 305.4°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#7A30B5
RGBrgb(122, 48, 181)
HSLhsl(273, 58%, 45%)
HSVhsv(273, 73%, 71%)
CMYKcmyk(32.6%, 73.5%, 0%, 29%)
CIE-LABlab(37.09, 55.18, -57.04)
CIE-LCHlch(37.09, 79.36, 314.05°)
OKLaboklab(48.24% 0.1152 -0.1622)
OKLCHoklch(48.24% 0.199 305.4)
XYZxyz(17.4216, 9.5878, 44.6399)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A30B5 #6BB530
analogous
#3730B5 #7A30B5 #B530AE
triadic
#7A30B5 #B57A30 #30B57A
tetradic
#7A30B5 #B53730 #6BB530 #30AEB5
square
#7A30B5 #B53730 #6BB530 #30AEB5
split-complementary
#7A30B5 #AEB530 #30B537
monochromatic
#391654 #592385 #7A30B5 #9851D1 #B582DE

Accessibility & contrast

On white

7.20
#7A30B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#7A30B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A30B5
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A30B5#FFFFFF#000000##FFFFFF
##7A30B51.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#6F5070
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a30b5;
/* rgb */ color: rgb(122, 48, 181);
/* oklch */ color: oklch(48.2% 0.199 305.4);
Tailwind
colors: {
  custom: {
    50: '#a66fcc',
    500: '#7a30b5',
    950: '#000000',
  },
}
SCSS
$custom: #7a30b5;
$custom-light: #a66fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a30b5",
  "rgb": {
    "r": 122,
    "g": 48,
    "b": 181
  },
  "hsl": {
    "h": 273.383,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48237,
    "c": 0.19898,
    "h": 305.4
  },
  "luminance": 0.09588
}

Semantic roles & 50–950 ramp

primary
#7A30B5
secondary
#9CC77A
accent
#E1468B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A30B5

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

Preview Lab → · Contrast checker → · Palette generator →

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