#7D46C2#7D46C2

#7D46C2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.3% C 0.186 H 300.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7D46C2
RGBrgb(125, 70, 194)
HSLhsl(267, 50%, 52%)
HSVhsv(267, 64%, 76%)
CMYKcmyk(35.6%, 63.9%, 0%, 23.9%)
CIE-LABlab(42.21, 48.38, -56.36)
CIE-LCHlch(42.21, 74.28, 310.64°)
OKLaboklab(52.28% 0.0943 -0.1602)
OKLCHoklch(52.28% 0.186 300.5)
XYZxyz(20.3828, 12.6352, 52.3935)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D46C2 #8BC246
analogous
#464DC2 #7D46C2 #BB46C2
triadic
#7D46C2 #C27D46 #46C27D
tetradic
#7D46C2 #C2464D #8BC246 #46C2BB
square
#7D46C2 #C2464D #8BC246 #46C2BB
split-complementary
#7D46C2 #C2BB46 #4DC246
monochromatic
#43236A #603299 #7D46C2 #9D74D1 #BEA2E0

Accessibility & contrast

On white

5.95
#7D46C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7D46C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D46C2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D46C2#FFFFFF#000000##FFFFFF
##7D46C21.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C6
Deuteranopia (green-blind)
#1063BF
Tritanopia (blue-blind)
#6E617E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7d46c2;
/* rgb */ color: rgb(125, 70, 194);
/* oklch */ color: oklch(52.3% 0.186 300.5);
Tailwind
colors: {
  custom: {
    50: '#a77dd5',
    500: '#7d46c2',
    950: '#000000',
  },
}
SCSS
$custom: #7d46c2;
$custom-light: #a77dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d46c2",
  "rgb": {
    "r": 125,
    "g": 70,
    "b": 194
  },
  "hsl": {
    "h": 266.613,
    "s": 50.407,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52275,
    "c": 0.1859,
    "h": 300.5
  },
  "luminance": 0.12635
}

Semantic roles & 50–950 ramp

primary
#7D46C2
secondary
#B5CD97
accent
#DA4E9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #7D46C2

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

Preview Lab → · Contrast checker → · Palette generator →

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