#7A2EB5#7A2EB5

#7A2EB5 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.0% C 0.201 H 305.6°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#7A2EB5
RGBrgb(122, 46, 181)
HSLhsl(274, 59%, 45%)
HSVhsv(274, 75%, 71%)
CMYKcmyk(32.6%, 74.6%, 0%, 29%)
CIE-LABlab(36.80, 56.02, -57.52)
CIE-LCHlch(36.80, 80.29, 314.24°)
OKLaboklab(48.03% 0.1171 -0.1636)
OKLCHoklch(48.03% 0.201 305.6)
XYZxyz(17.3417, 9.4279, 44.6133)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EB5 #69B52E
analogous
#372EB5 #7A2EB5 #B52EAC
triadic
#7A2EB5 #B57A2E #2EB57A
tetradic
#7A2EB5 #B5372E #69B52E #2EACB5
square
#7A2EB5 #B5372E #69B52E #2EACB5
split-complementary
#7A2EB5 #ACB52E #2EB537
monochromatic
#381553 #592284 #7A2EB5 #984ED2 #B57FDE

Accessibility & contrast

On white

7.28
#7A2EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2EB5
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EB5#FFFFFF#000000##FFFFFF
##7A2EB51.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#6F4F6F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2eb5;
/* rgb */ color: rgb(122, 46, 181);
/* oklch */ color: oklch(48.0% 0.201 305.6);
Tailwind
colors: {
  custom: {
    50: '#a66ecc',
    500: '#7a2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #7a2eb5;
$custom-light: #a66ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2eb5",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 273.778,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48028,
    "c": 0.20122,
    "h": 305.6
  },
  "luminance": 0.09428
}

Semantic roles & 50–950 ramp

primary
#7A2EB5
secondary
#9AC778
accent
#E3458A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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