#7A30BB#7A30BB

#7A30BB is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.205 H 303.8°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#7A30BB
RGBrgb(122, 48, 187)
HSLhsl(272, 59%, 46%)
HSVhsv(272, 74%, 73%)
CMYKcmyk(34.8%, 74.3%, 0%, 26.7%)
CIE-LABlab(37.55, 56.57, -59.83)
CIE-LCHlch(37.55, 82.34, 313.39°)
OKLaboklab(48.71% 0.114 -0.1704)
OKLCHoklch(48.71% 0.205 303.8)
XYZxyz(18.0506, 9.8394, 47.9523)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A30BB #71BB30
analogous
#3430BB #7A30BB #BB30B6
triadic
#7A30BB #BB7A30 #30BB7A
tetradic
#7A30BB #BB3430 #71BB30 #30B6BB
square
#7A30BB #BB3430 #71BB30 #30B6BB
split-complementary
#7A30BB #B6BB30 #30BB34
monochromatic
#3A175A #5A238A #7A30BB #9855D3 #B686E0

Accessibility & contrast

On white

7.08
#7A30BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7A30BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A30BB
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A30BB#FFFFFF#000000##FFFFFF
##7A30BB1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#6D5373
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7a30bb;
/* rgb */ color: rgb(122, 48, 187);
/* oklch */ color: oklch(48.7% 0.205 303.8);
Tailwind
colors: {
  custom: {
    50: '#a670d0',
    500: '#7a30bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a30bb;
$custom-light: #a670d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a30bb",
  "rgb": {
    "r": 122,
    "g": 48,
    "b": 187
  },
  "hsl": {
    "h": 271.942,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.48707,
    "c": 0.20506,
    "h": 303.8
  },
  "luminance": 0.09839
}

Semantic roles & 50–950 ramp

primary
#7A30BB
secondary
#A1C97D
accent
#E2458F
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A30BB

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

Preview Lab → · Contrast checker → · Palette generator →

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