#7D46CB#7D46CB

#7D46CB is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.9% C 0.196 H 298.4°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7D46CB
RGBrgb(125, 70, 203)
HSLhsl(265, 56%, 54%)
HSVhsv(265, 66%, 80%)
CMYKcmyk(38.4%, 65.5%, 0%, 20.4%)
CIE-LABlab(42.84, 50.67, -60.56)
CIE-LCHlch(42.84, 78.96, 309.92°)
OKLaboklab(52.93% 0.0934 -0.1726)
OKLCHoklch(52.93% 0.196 298.4)
XYZxyz(21.4244, 13.0518, 57.8788)
Luminance0.1305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D46CB #94CB46
analogous
#4651CB #7D46CB #BF46CB
triadic
#7D46CB #CB7D46 #46CB7D
tetradic
#7D46CB #CB4651 #94CB46 #46CBBF
square
#7D46CB #CB4651 #94CB46 #46CBBF
split-complementary
#7D46CB #CBBF46 #51CB46
monochromatic
#442176 #602EA5 #7D46CB #9F76D8 #C0A6E6

Accessibility & contrast

On white

5.82
#7D46CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7D46CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D46CB
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D46CB#FFFFFF#000000##FFFFFF
##7D46CB1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#0064C8
Tritanopia (blue-blind)
#6B6582
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7d46cb;
/* rgb */ color: rgb(125, 70, 203);
/* oklch */ color: oklch(52.9% 0.196 298.4);
Tailwind
colors: {
  custom: {
    50: '#a87ddc',
    500: '#7d46cb',
    950: '#000000',
  },
}
SCSS
$custom: #7d46cb;
$custom-light: #a87ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d46cb",
  "rgb": {
    "r": 125,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 264.812,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52932,
    "c": 0.19622,
    "h": 298.4
  },
  "luminance": 0.13052
}

Semantic roles & 50–950 ramp

primary
#7D46CB
secondary
#BBD39A
accent
#DF48A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7D46CB

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

Preview Lab → · Contrast checker → · Palette generator →

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