#7B46BB#7B46BB

#7B46BB is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.6% C 0.177 H 301.2°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#7B46BB
RGBrgb(123, 70, 187)
HSLhsl(267, 46%, 50%)
HSVhsv(267, 63%, 73%)
CMYKcmyk(34.2%, 62.6%, 0%, 26.7%)
CIE-LABlab(41.50, 46.17, -53.43)
CIE-LCHlch(41.50, 70.62, 310.83°)
OKLaboklab(51.56% 0.092 -0.1517)
OKLCHoklch(51.56% 0.177 301.2)
XYZxyz(19.3260, 12.1790, 48.3367)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B46BB #86BB46
analogous
#464CBB #7B46BB #B546BB
triadic
#7B46BB #BB7B46 #46BB7B
tetradic
#7B46BB #BB464C #86BB46 #46BBB5
square
#7B46BB #BB464C #86BB46 #46BBB5
split-complementary
#7B46BB #BBB546 #4CBB46
monochromatic
#402462 #5E358F #7B46BB #9B73CB #BBA0DC

Accessibility & contrast

On white

6.11
#7B46BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7B46BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B46BB
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B46BB#FFFFFF#000000##FFFFFF
##7B46BB1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#1D61B8
Tritanopia (blue-blind)
#6E5F7A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7b46bb;
/* rgb */ color: rgb(123, 70, 187);
/* oklch */ color: oklch(51.6% 0.177 301.2);
Tailwind
colors: {
  custom: {
    50: '#a57cd0',
    500: '#7b46bb',
    950: '#000000',
  },
}
SCSS
$custom: #7b46bb;
$custom-light: #a57cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b46bb",
  "rgb": {
    "r": 123,
    "g": 70,
    "b": 187
  },
  "hsl": {
    "h": 267.179,
    "s": 46.245,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51558,
    "c": 0.17743,
    "h": 301.2
  },
  "luminance": 0.12179
}

Semantic roles & 50–950 ramp

primary
#7B46BB
secondary
#B1C894
accent
#D6529A
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7B46BB

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

Preview Lab → · Contrast checker → · Palette generator →

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