#7A2EB8#7A2EB8

#7A2EB8 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.204 H 304.8°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#7A2EB8
RGBrgb(122, 46, 184)
HSLhsl(273, 60%, 45%)
HSVhsv(273, 75%, 72%)
CMYKcmyk(33.7%, 75%, 0%, 27.8%)
CIE-LABlab(37.03, 56.71, -58.92)
CIE-LCHlch(37.03, 81.78, 313.91°)
OKLaboklab(48.26% 0.1165 -0.1677)
OKLCHoklch(48.26% 0.204 304.8)
XYZxyz(17.6528, 9.5523, 46.2519)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EB8 #6CB82E
analogous
#352EB8 #7A2EB8 #B82EB1
triadic
#7A2EB8 #B87A2E #2EB87A
tetradic
#7A2EB8 #B8352E #6CB82E #2EB1B8
square
#7A2EB8 #B8352E #6CB82E #2EB1B8
split-complementary
#7A2EB8 #B1B82E #2EB835
monochromatic
#391656 #5A2287 #7A2EB8 #9850D3 #B581DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A2EB8#FFFFFF#000000##FFFFFF
##7A2EB81.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)
#0055BC
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#6E5071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2eb8;
/* rgb */ color: rgb(122, 46, 184);
/* oklch */ color: oklch(48.3% 0.204 304.8);
Tailwind
colors: {
  custom: {
    50: '#a66fce',
    500: '#7a2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #7a2eb8;
$custom-light: #a66fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2eb8",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 273.043,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48263,
    "c": 0.20422,
    "h": 304.8
  },
  "luminance": 0.09552
}

Semantic roles & 50–950 ramp

primary
#7A2EB8
secondary
#9DC879
accent
#E3458C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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