#7A2EB2#7A2EB2

#7A2EB2 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.8% C 0.198 H 306.4°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7A2EB2
RGBrgb(122, 46, 178)
HSLhsl(275, 59%, 44%)
HSVhsv(275, 74%, 70%)
CMYKcmyk(31.5%, 74.2%, 0%, 30.2%)
CIE-LABlab(36.57, 55.34, -56.11)
CIE-LCHlch(36.57, 78.81, 314.60°)
OKLaboklab(47.8% 0.1177 -0.1595)
OKLCHoklch(47.8% 0.198 306.4)
XYZxyz(17.0372, 9.3061, 43.0096)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EB2 #66B22E
analogous
#382EB2 #7A2EB2 #B22EA8
triadic
#7A2EB2 #B27A2E #2EB27A
tetradic
#7A2EB2 #B2382E #66B22E #2EA8B2
square
#7A2EB2 #B2382E #66B22E #2EA8B2
split-complementary
#7A2EB2 #A8B22E #2EB238
monochromatic
#371551 #592181 #7A2EB2 #994CD1 #B57DDD

Accessibility & contrast

On white

7.34
#7A2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7A2EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EB2
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EB2#FFFFFF#000000##FFFFFF
##7A2EB21.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0056AF
Tritanopia (blue-blind)
#704E6E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2eb2;
/* rgb */ color: rgb(122, 46, 178);
/* oklch */ color: oklch(47.8% 0.198 306.4);
Tailwind
colors: {
  custom: {
    50: '#a56eca',
    500: '#7a2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #7a2eb2;
$custom-light: #a56eca;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2eb2",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 274.545,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47795,
    "c": 0.19822,
    "h": 306.4
  },
  "luminance": 0.09306
}

Semantic roles & 50–950 ramp

primary
#7A2EB2
secondary
#98C676
accent
#E24688
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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