#7D46AB#7D46AB

#7D46AB is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.7% C 0.159 H 306.7°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#7D46AB
RGBrgb(125, 70, 171)
HSLhsl(273, 42%, 47%)
HSVhsv(273, 59%, 67%)
CMYKcmyk(26.9%, 59.1%, 0%, 32.9%)
CIE-LABlab(40.70, 42.70, -45.27)
CIE-LCHlch(40.70, 62.23, 313.33°)
OKLaboklab(50.7% 0.0952 -0.1277)
OKLCHoklch(50.7% 0.159 306.7)
XYZxyz(17.9968, 11.6808, 39.8267)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D46AB #74AB46
analogous
#4A46AB #7D46AB #AB46A7
triadic
#7D46AB #AB7D46 #46AB7D
tetradic
#7D46AB #AB4A46 #74AB46 #46A7AB
square
#7D46AB #AB4A46 #74AB46 #46A7AB
split-complementary
#7D46AB #A7AB46 #46AB4A
monochromatic
#3E2254 #5D3480 #7D46AB #9B6CC3 #B897D4

Accessibility & contrast

On white

6.29
#7D46AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#7D46AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D46AB
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D46AB#FFFFFF#000000##FFFFFF
##7D46AB1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5EAE
Deuteranopia (green-blind)
#3560A9
Tritanopia (blue-blind)
#765972
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7d46ab;
/* rgb */ color: rgb(125, 70, 171);
/* oklch */ color: oklch(50.7% 0.159 306.7);
Tailwind
colors: {
  custom: {
    50: '#a67cc4',
    500: '#7d46ab',
    950: '#000000',
  },
}
SCSS
$custom: #7d46ab;
$custom-light: #a67cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d46ab",
  "rgb": {
    "r": 125,
    "g": 70,
    "b": 171
  },
  "hsl": {
    "h": 272.673,
    "s": 41.909,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50702,
    "c": 0.15922,
    "h": 306.7
  },
  "luminance": 0.11681
}

Semantic roles & 50–950 ramp

primary
#7D46AB
secondary
#A4C08C
accent
#D2568E
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7D46AB

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

Preview Lab → · Contrast checker → · Palette generator →

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