#7A46DB#7A46DB

#7A46DB is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 53.8% C 0.214 H 294.0°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#7A46DB
RGBrgb(122, 70, 219)
HSLhsl(261, 67%, 57%)
HSVhsv(261, 68%, 86%)
CMYKcmyk(44.3%, 68%, 0%, 14.1%)
CIE-LABlab(43.70, 54.24, -68.38)
CIE-LCHlch(43.70, 87.28, 308.43°)
OKLaboklab(53.85% 0.0871 -0.1957)
OKLCHoklch(53.85% 0.214 294)
XYZxyz(22.9989, 13.6317, 68.4235)
Luminance0.1363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A46DB #A7DB46
analogous
#465DDB #7A46DB #C546DB
triadic
#7A46DB #DB7A46 #46DB7A
tetradic
#7A46DB #DB465D #A7DB46 #46DBC5
square
#7A46DB #DB465D #A7DB46 #46DBC5
split-complementary
#7A46DB #DBC546 #5DDB46
monochromatic
#421B8B #5B25BF #7A46DB #9F79E5 #C4ACEF

Accessibility & contrast

On white

5.64
#7A46DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#7A46DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A46DB
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A46DB#FFFFFF#000000##FFFFFF
##7A46DB1.005.643.735.64
#FFFFFF5.641.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DF
Deuteranopia (green-blind)
#0065D8
Tritanopia (blue-blind)
#5E6B8B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #7a46db;
/* rgb */ color: rgb(122, 70, 219);
/* oklch */ color: oklch(53.8% 0.214 294.0);
Tailwind
colors: {
  custom: {
    50: '#a87de7',
    500: '#7a46db',
    950: '#000000',
  },
}
SCSS
$custom: #7a46db;
$custom-light: #a87de7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a46db",
  "rgb": {
    "r": 122,
    "g": 70,
    "b": 219
  },
  "hsl": {
    "h": 260.94,
    "s": 67.421,
    "l": 56.667
  },
  "oklch": {
    "l": 0.53846,
    "c": 0.21417,
    "h": 294
  },
  "luminance": 0.13632
}

Semantic roles & 50–950 ramp

primary
#7A46DB
secondary
#C8DDA0
accent
#EA3DAE
background
#FAF7FE
surface
#F5EEFD
border
#CFC9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7A46DB

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

Preview Lab → · Contrast checker → · Palette generator →

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