#7B46AA#7B46AA

#7B46AA is a mid, vivid violet. Relative luminance 0.115; OKLCH L 50.4% C 0.157 H 306.0°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#7B46AA
RGBrgb(123, 70, 170)
HSLhsl(272, 42%, 47%)
HSVhsv(272, 59%, 67%)
CMYKcmyk(27.6%, 58.8%, 0%, 33.3%)
CIE-LABlab(40.40, 41.95, -45.17)
CIE-LCHlch(40.40, 61.65, 312.88°)
OKLaboklab(50.41% 0.0925 -0.1274)
OKLCHoklch(50.41% 0.157 306)
XYZxyz(17.6127, 11.4937, 39.3131)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B46AA #75AA46
analogous
#4946AA #7B46AA #AA46A7
triadic
#7B46AA #AA7B46 #46AA7B
tetradic
#7B46AA #AA4946 #75AA46 #46A7AA
square
#7B46AA #AA4946 #75AA46 #46A7AA
split-complementary
#7B46AA #A7AA46 #46AA49
monochromatic
#3C2253 #5C347F #7B46AA #996BC2 #B796D4

Accessibility & contrast

On white

6.37
#7B46AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#7B46AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B46AA
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B46AA#FFFFFF#000000##FFFFFF
##7B46AA1.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5EAD
Deuteranopia (green-blind)
#3460A8
Tritanopia (blue-blind)
#735971
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7b46aa;
/* rgb */ color: rgb(123, 70, 170);
/* oklch */ color: oklch(50.4% 0.157 306.0);
Tailwind
colors: {
  custom: {
    50: '#a47cc4',
    500: '#7b46aa',
    950: '#000000',
  },
}
SCSS
$custom: #7b46aa;
$custom-light: #a47cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7b46aa",
  "rgb": {
    "r": 123,
    "g": 70,
    "b": 170
  },
  "hsl": {
    "h": 271.8,
    "s": 41.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50406,
    "c": 0.15747,
    "h": 306
  },
  "luminance": 0.11494
}

Semantic roles & 50–950 ramp

primary
#7B46AA
secondary
#A4C08C
accent
#D15690
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A13
muted
#7F7C82

Preview Lab

Preview with #7B46AA

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

Preview Lab → · Contrast checker → · Palette generator →

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