#7A46CB#7A46CB

#7A46CB is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.6% C 0.196 H 297.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7A46CB
RGBrgb(122, 70, 203)
HSLhsl(263, 56%, 54%)
HSVhsv(263, 66%, 80%)
CMYKcmyk(39.9%, 65.5%, 0%, 20.4%)
CIE-LABlab(42.50, 50.06, -61.12)
CIE-LCHlch(42.50, 79.01, 309.32°)
OKLaboklab(52.61% 0.0893 -0.1743)
OKLCHoklch(52.61% 0.196 297.1)
XYZxyz(20.9929, 12.8293, 57.8586)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A46CB #97CB46
analogous
#4654CB #7A46CB #BD46CB
triadic
#7A46CB #CB7A46 #46CB7A
tetradic
#7A46CB #CB4654 #97CB46 #46CBBD
square
#7A46CB #CB4654 #97CB46 #46CBBD
split-complementary
#7A46CB #CBBD46 #54CB46
monochromatic
#422176 #5D2EA5 #7A46CB #9C76D8 #BFA6E6

Accessibility & contrast

On white

5.89
#7A46CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7A46CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A46CB
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A46CB#FFFFFF#000000##FFFFFF
##7A46CB1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#666582
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7a46cb;
/* rgb */ color: rgb(122, 70, 203);
/* oklch */ color: oklch(52.6% 0.196 297.1);
Tailwind
colors: {
  custom: {
    50: '#a67ddc',
    500: '#7a46cb',
    950: '#000000',
  },
}
SCSS
$custom: #7a46cb;
$custom-light: #a67ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a46cb",
  "rgb": {
    "r": 122,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 263.459,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52614,
    "c": 0.19586,
    "h": 297.1
  },
  "luminance": 0.1283
}

Semantic roles & 50–950 ramp

primary
#7A46CB
secondary
#BDD39A
accent
#DF48A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7A46CB

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

Preview Lab → · Contrast checker → · Palette generator →

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