#7D46BB#7D46BB

#7D46BB is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.8% C 0.178 H 302.2°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#7D46BB
RGBrgb(125, 70, 187)
HSLhsl(268, 46%, 50%)
HSVhsv(268, 63%, 73%)
CMYKcmyk(33.2%, 62.6%, 0%, 26.7%)
CIE-LABlab(41.73, 46.63, -53.04)
CIE-LCHlch(41.73, 70.62, 311.32°)
OKLaboklab(51.78% 0.0947 -0.1505)
OKLCHoklch(51.78% 0.178 302.2)
XYZxyz(19.6152, 12.3281, 48.3502)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D46BB #84BB46
analogous
#4649BB #7D46BB #B746BB
triadic
#7D46BB #BB7D46 #46BB7D
tetradic
#7D46BB #BB4649 #84BB46 #46BBB7
square
#7D46BB #BB4649 #84BB46 #46BBB7
split-complementary
#7D46BB #BBB746 #49BB46
monochromatic
#412462 #5F358F #7D46BB #9C73CB #BCA0DC

Accessibility & contrast

On white

6.06
#7D46BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7D46BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D46BB
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D46BB#FFFFFF#000000##FFFFFF
##7D46BB1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#2062B8
Tritanopia (blue-blind)
#715F7A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7d46bb;
/* rgb */ color: rgb(125, 70, 187);
/* oklch */ color: oklch(51.8% 0.178 302.2);
Tailwind
colors: {
  custom: {
    50: '#a77cd0',
    500: '#7d46bb',
    950: '#000000',
  },
}
SCSS
$custom: #7d46bb;
$custom-light: #a77cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d46bb",
  "rgb": {
    "r": 125,
    "g": 70,
    "b": 187
  },
  "hsl": {
    "h": 268.205,
    "s": 46.245,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5178,
    "c": 0.17782,
    "h": 302.2
  },
  "luminance": 0.12328
}

Semantic roles & 50–950 ramp

primary
#7D46BB
secondary
#B0C894
accent
#D65298
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7D46BB

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

Preview Lab → · Contrast checker → · Palette generator →

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