#7A46C8#7A46C8

#7A46C8 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.4% C 0.192 H 297.8°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7A46C8
RGBrgb(122, 70, 200)
HSLhsl(264, 54%, 53%)
HSVhsv(264, 65%, 78%)
CMYKcmyk(39%, 65%, 0%, 21.6%)
CIE-LABlab(42.29, 49.28, -59.74)
CIE-LCHlch(42.29, 77.44, 309.52°)
OKLaboklab(52.39% 0.0896 -0.1703)
OKLCHoklch(52.39% 0.192 297.8)
XYZxyz(20.6389, 12.6877, 55.9940)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A46C8 #94C846
analogous
#4653C8 #7A46C8 #BB46C8
triadic
#7A46C8 #C87A46 #46C87A
tetradic
#7A46C8 #C84653 #94C846 #46C8BB
square
#7A46C8 #C84653 #94C846 #46C8BB
split-complementary
#7A46C8 #C8BB46 #53C846
monochromatic
#422272 #5D30A1 #7A46C8 #9C75D6 #BEA4E4

Accessibility & contrast

On white

5.94
#7A46C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7A46C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A46C8
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A46C8#FFFFFF#000000##FFFFFF
##7A46C81.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CC
Deuteranopia (green-blind)
#0062C5
Tritanopia (blue-blind)
#676481
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7a46c8;
/* rgb */ color: rgb(122, 70, 200);
/* oklch */ color: oklch(52.4% 0.192 297.8);
Tailwind
colors: {
  custom: {
    50: '#a67cda',
    500: '#7a46c8',
    950: '#000000',
  },
}
SCSS
$custom: #7a46c8;
$custom-light: #a67cda;
$custom-dark: #000000;
JSON
{
  "hex": "#7a46c8",
  "rgb": {
    "r": 122,
    "g": 70,
    "b": 200
  },
  "hsl": {
    "h": 264,
    "s": 54.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5239,
    "c": 0.1924,
    "h": 297.8
  },
  "luminance": 0.12688
}

Semantic roles & 50–950 ramp

primary
#7A46C8
secondary
#BBD199
accent
#DE4AA3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7A46C8

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

Preview Lab → · Contrast checker → · Palette generator →

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