#7D46BA#7D46BA

#7D46BA is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.7% C 0.177 H 302.4°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#7D46BA
RGBrgb(125, 70, 186)
HSLhsl(268, 46%, 50%)
HSVhsv(268, 62%, 73%)
CMYKcmyk(32.8%, 62.4%, 0%, 27.1%)
CIE-LABlab(41.67, 46.38, -52.57)
CIE-LCHlch(41.67, 70.10, 311.42°)
OKLaboklab(51.71% 0.0948 -0.1491)
OKLCHoklch(51.71% 0.177 302.4)
XYZxyz(19.5085, 12.2854, 47.7884)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D46BA #83BA46
analogous
#4649BA #7D46BA #B746BA
triadic
#7D46BA #BA7D46 #46BA7D
tetradic
#7D46BA #BA4649 #83BA46 #46BAB7
square
#7D46BA #BA4649 #83BA46 #46BAB7
split-complementary
#7D46BA #BAB746 #49BA46
monochromatic
#412461 #5F358E #7D46BA #9C73CB #BC9FDB

Accessibility & contrast

On white

6.07
#7D46BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7D46BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D46BA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D46BA#FFFFFF#000000##FFFFFF
##7D46BA1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#2262B7
Tritanopia (blue-blind)
#715F79
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7d46ba;
/* rgb */ color: rgb(125, 70, 186);
/* oklch */ color: oklch(51.7% 0.177 302.4);
Tailwind
colors: {
  custom: {
    50: '#a77ccf',
    500: '#7d46ba',
    950: '#000000',
  },
}
SCSS
$custom: #7d46ba;
$custom-light: #a77ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d46ba",
  "rgb": {
    "r": 125,
    "g": 70,
    "b": 186
  },
  "hsl": {
    "h": 268.448,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5171,
    "c": 0.17666,
    "h": 302.4
  },
  "luminance": 0.12285
}

Semantic roles & 50–950 ramp

primary
#7D46BA
secondary
#AFC894
accent
#D55297
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7D46BA

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

Preview Lab → · Contrast checker → · Palette generator →

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