#7A30B2#7A30B2

#7A30B2 is a mid, vivid violet. Relative luminance 0.095; OKLCH L 48.0% C 0.196 H 306.2°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7A30B2
RGBrgb(122, 48, 178)
HSLhsl(274, 58%, 44%)
HSVhsv(274, 73%, 70%)
CMYKcmyk(31.5%, 73%, 0%, 30.2%)
CIE-LABlab(36.87, 54.49, -55.63)
CIE-LCHlch(36.87, 77.87, 314.41°)
OKLaboklab(48.01% 0.1158 -0.1581)
OKLCHoklch(48.01% 0.196 306.2)
XYZxyz(17.1171, 9.4660, 43.0362)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A30B2 #68B230
analogous
#3930B2 #7A30B2 #B230A9
triadic
#7A30B2 #B27A30 #30B27A
tetradic
#7A30B2 #B23930 #68B230 #30A9B2
square
#7A30B2 #B23930 #68B230 #30A9B2
split-complementary
#7A30B2 #A9B230 #30B239
monochromatic
#381652 #592382 #7A30B2 #9850D0 #B580DD

Accessibility & contrast

On white

7.26
#7A30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7A30B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A30B2
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A30B2#FFFFFF#000000##FFFFFF
##7A30B21.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0057AF
Tritanopia (blue-blind)
#704F6E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a30b2;
/* rgb */ color: rgb(122, 48, 178);
/* oklch */ color: oklch(48.0% 0.196 306.2);
Tailwind
colors: {
  custom: {
    50: '#a56fca',
    500: '#7a30b2',
    950: '#000000',
  },
}
SCSS
$custom: #7a30b2;
$custom-light: #a56fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7a30b2",
  "rgb": {
    "r": 122,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 274.154,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48007,
    "c": 0.19594,
    "h": 306.2
  },
  "luminance": 0.09466
}

Semantic roles & 50–950 ramp

primary
#7A30B2
secondary
#9AC678
accent
#E14789
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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