#7A2ED7#7A2ED7

#7A2ED7 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.8% C 0.235 H 297.5°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#7A2ED7
RGBrgb(122, 46, 215)
HSLhsl(267, 68%, 51%)
HSVhsv(267, 79%, 84%)
CMYKcmyk(43.3%, 78.6%, 0%, 15.7%)
CIE-LABlab(39.58, 63.99, -72.82)
CIE-LCHlch(39.58, 96.94, 311.31°)
OKLaboklab(50.84% 0.1086 -0.2086)
OKLCHoklch(50.84% 0.235 297.5)
XYZxyz(21.2656, 10.9975, 65.2791)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2ED7 #8BD72E
analogous
#2E36D7 #7A2ED7 #CE2ED7
triadic
#7A2ED7 #D77A2E #2ED77A
tetradic
#7A2ED7 #D72E36 #8BD72E #2ED7CE
square
#7A2ED7 #D72E36 #8BD72E #2ED7CE
split-complementary
#7A2ED7 #D7CE2E #36D72E
monochromatic
#411674 #5D20A8 #7A2ED7 #9B61E1 #BB95EB

Accessibility & contrast

On white

6.56
#7A2ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#7A2ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A2ED7
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2ED7#FFFFFF#000000##FFFFFF
##7A2ED71.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDC
Deuteranopia (green-blind)
#005BD4
Tritanopia (blue-blind)
#615D83
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7a2ed7;
/* rgb */ color: rgb(122, 46, 215);
/* oklch */ color: oklch(50.8% 0.235 297.5);
Tailwind
colors: {
  custom: {
    50: '#a970e5',
    500: '#7a2ed7',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ed7;
$custom-light: #a970e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ed7",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 266.982,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.50836,
    "c": 0.23512,
    "h": 297.5
  },
  "luminance": 0.10998
}

Semantic roles & 50–950 ramp

primary
#7A2ED7
secondary
#B4D68B
accent
#EB3D9D
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #7A2ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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