#7A2FAD#7A2FAD

#7A2FAD is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.5% C 0.192 H 307.8°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#7A2FAD
RGBrgb(122, 47, 173)
HSLhsl(276, 57%, 43%)
HSVhsv(276, 73%, 68%)
CMYKcmyk(29.5%, 72.8%, 0%, 32.2%)
CIE-LABlab(36.34, 53.78, -53.50)
CIE-LCHlch(36.34, 75.86, 315.15°)
OKLaboklab(47.52% 0.1176 -0.1518)
OKLCHoklch(47.52% 0.192 307.8)
XYZxyz(16.5838, 9.1880, 40.4269)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2FAD #62AD2F
analogous
#3B2FAD #7A2FAD #AD2FA1
triadic
#7A2FAD #AD7A2F #2FAD7A
tetradic
#7A2FAD #AD3B2F #62AD2F #2FA1AD
square
#7A2FAD #AD3B2F #62AD2F #2FA1AD
split-complementary
#7A2FAD #A1AD2F #2FAD3B
monochromatic
#36154D #58227D #7A2FAD #994BCE #B47BDB

Accessibility & contrast

On white

7.40
#7A2FAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7A2FAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2FAD
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2FAD#FFFFFF#000000##FFFFFF
##7A2FAD1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#0256AA
Tritanopia (blue-blind)
#724C6B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2fad;
/* rgb */ color: rgb(122, 47, 173);
/* oklch */ color: oklch(47.5% 0.192 307.8);
Tailwind
colors: {
  custom: {
    50: '#a56fc6',
    500: '#7a2fad',
    950: '#000000',
  },
}
SCSS
$custom: #7a2fad;
$custom-light: #a56fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2fad",
  "rgb": {
    "r": 122,
    "g": 47,
    "b": 173
  },
  "hsl": {
    "h": 275.714,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47519,
    "c": 0.19205,
    "h": 307.8
  },
  "luminance": 0.09188
}

Semantic roles & 50–950 ramp

primary
#7A2FAD
secondary
#94C474
accent
#E14785
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7A2FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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