#7B46CA#7B46CA

#7B46CA is a mid, vivid violet. Relative luminance 0.129; OKLCH L 52.6% C 0.195 H 297.8°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#7B46CA
RGBrgb(123, 70, 202)
HSLhsl(264, 55%, 53%)
HSVhsv(264, 65%, 79%)
CMYKcmyk(39.1%, 65.3%, 0%, 20.8%)
CIE-LABlab(42.54, 50.00, -60.48)
CIE-LCHlch(42.54, 78.47, 309.59°)
OKLaboklab(52.65% 0.0908 -0.1724)
OKLCHoklch(52.65% 0.195 297.8)
XYZxyz(21.0165, 12.8552, 57.2397)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B46CA #95CA46
analogous
#4653CA #7B46CA #BD46CA
triadic
#7B46CA #CA7B46 #46CA7B
tetradic
#7B46CA #CA4653 #95CA46 #46CABD
square
#7B46CA #CA4653 #95CA46 #46CABD
split-complementary
#7B46CA #CABD46 #53CA46
monochromatic
#432174 #5E2FA4 #7B46CA #9D76D8 #BFA5E5

Accessibility & contrast

On white

5.88
#7B46CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7B46CA
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B46CA#FFFFFF#000000##FFFFFF
##7B46CA1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#0063C7
Tritanopia (blue-blind)
#686482
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7b46ca;
/* rgb */ color: rgb(123, 70, 202);
/* oklch */ color: oklch(52.6% 0.195 297.8);
Tailwind
colors: {
  custom: {
    50: '#a77ddb',
    500: '#7b46ca',
    950: '#000000',
  },
}
SCSS
$custom: #7b46ca;
$custom-light: #a77ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#7b46ca",
  "rgb": {
    "r": 123,
    "g": 70,
    "b": 202
  },
  "hsl": {
    "h": 264.091,
    "s": 55.462,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52645,
    "c": 0.19483,
    "h": 297.8
  },
  "luminance": 0.12856
}

Semantic roles & 50–950 ramp

primary
#7B46CA
secondary
#BBD29A
accent
#DF49A3
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7B46CA

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

Preview Lab → · Contrast checker → · Palette generator →

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