#7A2EB9#7A2EB9

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

Color values

HEX#7A2EB9
RGBrgb(122, 46, 185)
HSLhsl(273, 60%, 45%)
HSVhsv(273, 75%, 73%)
CMYKcmyk(34.1%, 75.1%, 0%, 27.5%)
CIE-LABlab(37.10, 56.94, -59.38)
CIE-LCHlch(37.10, 82.27, 313.80°)
OKLaboklab(48.34% 0.1163 -0.1691)
OKLCHoklch(48.34% 0.205 304.5)
XYZxyz(17.7580, 9.5944, 46.8059)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EB9 #6DB92E
analogous
#352EB9 #7A2EB9 #B92EB2
triadic
#7A2EB9 #B97A2E #2EB97A
tetradic
#7A2EB9 #B9352E #6DB92E #2EB2B9
square
#7A2EB9 #B9352E #6DB92E #2EB2B9
split-complementary
#7A2EB9 #B2B92E #2EB935
monochromatic
#391657 #5A2288 #7A2EB9 #9851D4 #B582E0

Accessibility & contrast

On white

7.19
#7A2EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2EB9
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EB9#FFFFFF#000000##FFFFFF
##7A2EB91.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0057B6
Tritanopia (blue-blind)
#6E5172
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2eb9;
/* rgb */ color: rgb(122, 46, 185);
/* oklch */ color: oklch(48.3% 0.205 304.5);
Tailwind
colors: {
  custom: {
    50: '#a66fcf',
    500: '#7a2eb9',
    950: '#000000',
  },
}
SCSS
$custom: #7a2eb9;
$custom-light: #a66fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2eb9",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 272.806,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48342,
    "c": 0.20523,
    "h": 304.5
  },
  "luminance": 0.09594
}

Semantic roles & 50–950 ramp

primary
#7A2EB9
secondary
#9EC97A
accent
#E3448C
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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