#7A2EB6#7A2EB6

#7A2EB6 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.1% C 0.202 H 305.3°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7A2EB6
RGBrgb(122, 46, 182)
HSLhsl(274, 60%, 45%)
HSVhsv(274, 75%, 71%)
CMYKcmyk(33%, 74.7%, 0%, 28.6%)
CIE-LABlab(36.87, 56.25, -57.99)
CIE-LCHlch(36.87, 80.79, 314.13°)
OKLaboklab(48.11% 0.1169 -0.165)
OKLCHoklch(48.11% 0.202 305.3)
XYZxyz(17.4446, 9.4691, 45.1556)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EB6 #6AB62E
analogous
#362EB6 #7A2EB6 #B62EAE
triadic
#7A2EB6 #B67A2E #2EB67A
tetradic
#7A2EB6 #B6362E #6AB62E #2EAEB6
square
#7A2EB6 #B6362E #6AB62E #2EAEB6
split-complementary
#7A2EB6 #AEB62E #2EB636
monochromatic
#391554 #592285 #7A2EB6 #984FD2 #B580DF

Accessibility & contrast

On white

7.26
#7A2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7A2EB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EB6
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EB6#FFFFFF#000000##FFFFFF
##7A2EB61.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#6F5070
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2eb6;
/* rgb */ color: rgb(122, 46, 182);
/* oklch */ color: oklch(48.1% 0.202 305.3);
Tailwind
colors: {
  custom: {
    50: '#a66ecd',
    500: '#7a2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #7a2eb6;
$custom-light: #a66ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2eb6",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 273.529,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48106,
    "c": 0.20223,
    "h": 305.3
  },
  "luminance": 0.09469
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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