#7A46C2#7A46C2

#7A46C2 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.9% C 0.185 H 299.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7A46C2
RGBrgb(122, 70, 194)
HSLhsl(265, 50%, 52%)
HSVhsv(265, 64%, 76%)
CMYKcmyk(37.1%, 63.9%, 0%, 23.9%)
CIE-LABlab(41.86, 47.74, -56.94)
CIE-LCHlch(41.86, 74.30, 309.98°)
OKLaboklab(51.95% 0.0902 -0.162)
OKLCHoklch(51.95% 0.185 299.1)
XYZxyz(19.9514, 12.4127, 52.3732)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A46C2 #8EC246
analogous
#4650C2 #7A46C2 #B846C2
triadic
#7A46C2 #C27A46 #46C27A
tetradic
#7A46C2 #C24650 #8EC246 #46C2B8
square
#7A46C2 #C24650 #8EC246 #46C2B8
split-complementary
#7A46C2 #C2B846 #50C246
monochromatic
#41236A #5D3299 #7A46C2 #9B74D1 #BCA2E0

Accessibility & contrast

On white

6.03
#7A46C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7A46C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A46C2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A46C2#FFFFFF#000000##FFFFFF
##7A46C21.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#0462BF
Tritanopia (blue-blind)
#6A627E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a46c2;
/* rgb */ color: rgb(122, 70, 194);
/* oklch */ color: oklch(51.9% 0.185 299.1);
Tailwind
colors: {
  custom: {
    50: '#a57cd5',
    500: '#7a46c2',
    950: '#000000',
  },
}
SCSS
$custom: #7a46c2;
$custom-light: #a57cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a46c2",
  "rgb": {
    "r": 122,
    "g": 70,
    "b": 194
  },
  "hsl": {
    "h": 265.161,
    "s": 50.407,
    "l": 51.765
  },
  "oklch": {
    "l": 0.51949,
    "c": 0.18543,
    "h": 299.1
  },
  "luminance": 0.12413
}

Semantic roles & 50–950 ramp

primary
#7A46C2
secondary
#B6CD97
accent
#DA4E9F
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7A46C2

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

Preview Lab → · Contrast checker → · Palette generator →

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