#7A2EB4#7A2EB4

#7A2EB4 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.9% C 0.200 H 305.9°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#7A2EB4
RGBrgb(122, 46, 180)
HSLhsl(274, 59%, 44%)
HSVhsv(274, 74%, 71%)
CMYKcmyk(32.2%, 74.4%, 0%, 29.4%)
CIE-LABlab(36.72, 55.79, -57.05)
CIE-LCHlch(36.72, 79.80, 314.36°)
OKLaboklab(47.95% 0.1173 -0.1622)
OKLCHoklch(47.95% 0.2 305.9)
XYZxyz(17.2394, 9.3870, 44.0748)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EB4 #68B42E
analogous
#372EB4 #7A2EB4 #B42EAB
triadic
#7A2EB4 #B47A2E #2EB47A
tetradic
#7A2EB4 #B4372E #68B42E #2EABB4
square
#7A2EB4 #B4372E #68B42E #2EABB4
split-complementary
#7A2EB4 #ABB42E #2EB437
monochromatic
#381553 #592283 #7A2EB4 #984ED2 #B57EDE

Accessibility & contrast

On white

7.30
#7A2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#7A2EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EB4
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EB4#FFFFFF#000000##FFFFFF
##7A2EB41.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#704F6F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2eb4;
/* rgb */ color: rgb(122, 46, 180);
/* oklch */ color: oklch(47.9% 0.200 305.9);
Tailwind
colors: {
  custom: {
    50: '#a66ecb',
    500: '#7a2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #7a2eb4;
$custom-light: #a66ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2eb4",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 274.03,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4795,
    "c": 0.20022,
    "h": 305.9
  },
  "luminance": 0.09387
}

Semantic roles & 50–950 ramp

primary
#7A2EB4
secondary
#9AC777
accent
#E24589
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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