#7A2DAC#7A2DAC

#7A2DAC is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.193 H 308.3°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7A2DAC
RGBrgb(122, 45, 172)
HSLhsl(276, 59%, 43%)
HSVhsv(276, 74%, 67%)
CMYKcmyk(29.1%, 73.8%, 0%, 32.5%)
CIE-LABlab(35.97, 54.40, -53.51)
CIE-LCHlch(35.97, 76.30, 315.47°)
OKLaboklab(47.23% 0.1198 -0.1518)
OKLCHoklch(47.23% 0.193 308.3)
XYZxyz(16.4093, 8.9932, 39.8931)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2DAC #5FAC2D
analogous
#3B2DAC #7A2DAC #AC2D9E
triadic
#7A2DAC #AC7A2D #2DAC7A
tetradic
#7A2DAC #AC3B2D #5FAC2D #2D9EAC
square
#7A2DAC #AC3B2D #5FAC2D #2D9EAC
split-complementary
#7A2DAC #9EAC2D #2DAC3B
monochromatic
#35144B #58207B #7A2DAC #9A47CF #B478DC

Accessibility & contrast

On white

7.50
#7A2DAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7A2DAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2DAC
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2DAC#FFFFFF#000000##FFFFFF
##7A2DAC1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B0
Deuteranopia (green-blind)
#0055A9
Tritanopia (blue-blind)
#724B6A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2dac;
/* rgb */ color: rgb(122, 45, 172);
/* oklch */ color: oklch(47.2% 0.193 308.3);
Tailwind
colors: {
  custom: {
    50: '#a56dc6',
    500: '#7a2dac',
    950: '#000000',
  },
}
SCSS
$custom: #7a2dac;
$custom-light: #a56dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2dac",
  "rgb": {
    "r": 122,
    "g": 45,
    "b": 172
  },
  "hsl": {
    "h": 276.378,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47232,
    "c": 0.19338,
    "h": 308.3
  },
  "luminance": 0.08993
}

Semantic roles & 50–950 ramp

primary
#7A2DAC
secondary
#92C471
accent
#E24683
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2DAC

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

Preview Lab → · Contrast checker → · Palette generator →

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