#7A2EB7#7A2EB7

#7A2EB7 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.2% C 0.203 H 305.0°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#7A2EB7
RGBrgb(122, 46, 183)
HSLhsl(273, 60%, 45%)
HSVhsv(273, 75%, 72%)
CMYKcmyk(33.3%, 74.9%, 0%, 28.2%)
CIE-LABlab(36.95, 56.48, -58.45)
CIE-LCHlch(36.95, 81.28, 314.02°)
OKLaboklab(48.18% 0.1167 -0.1664)
OKLCHoklch(48.18% 0.203 305)
XYZxyz(17.5484, 9.5106, 45.7018)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EB7 #6BB72E
analogous
#362EB7 #7A2EB7 #B72EAF
triadic
#7A2EB7 #B77A2E #2EB77A
tetradic
#7A2EB7 #B7362E #6BB72E #2EAFB7
square
#7A2EB7 #B7362E #6BB72E #2EAFB7
split-complementary
#7A2EB7 #AFB72E #2EB736
monochromatic
#391555 #592286 #7A2EB7 #984FD3 #B580DF

Accessibility & contrast

On white

7.24
#7A2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#7A2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EB7
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EB7#FFFFFF#000000##FFFFFF
##7A2EB71.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#0057B4
Tritanopia (blue-blind)
#6F5071
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2eb7;
/* rgb */ color: rgb(122, 46, 183);
/* oklch */ color: oklch(48.2% 0.203 305.0);
Tailwind
colors: {
  custom: {
    50: '#a66ecd',
    500: '#7a2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #7a2eb7;
$custom-light: #a66ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2eb7",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 273.285,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48184,
    "c": 0.20322,
    "h": 305
  },
  "luminance": 0.0951
}

Semantic roles & 50–950 ramp

primary
#7A2EB7
secondary
#9CC879
accent
#E3458B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7A2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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