#7E46CD#7E46CD

#7E46CD is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.2% C 0.199 H 298.4°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#7E46CD
RGBrgb(126, 70, 205)
HSLhsl(265, 57%, 54%)
HSVhsv(265, 66%, 80%)
CMYKcmyk(38.5%, 65.9%, 0%, 19.6%)
CIE-LABlab(43.10, 51.38, -61.30)
CIE-LCHlch(43.10, 79.98, 309.97°)
OKLaboklab(53.19% 0.0945 -0.1747)
OKLCHoklch(53.19% 0.199 298.4)
XYZxyz(21.8110, 13.2234, 59.1490)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46CD #95CD46
analogous
#4652CD #7E46CD #C246CD
triadic
#7E46CD #CD7E46 #46CD7E
tetradic
#7E46CD #CD4652 #95CD46 #46CDC2
square
#7E46CD #CD4652 #95CD46 #46CDC2
split-complementary
#7E46CD #CDC246 #52CD46
monochromatic
#452078 #602DA8 #7E46CD #A076DA #C1A6E7

Accessibility & contrast

On white

5.76
#7E46CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#7E46CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46CD
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46CD#FFFFFF#000000##FFFFFF
##7E46CD1.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#0064CA
Tritanopia (blue-blind)
#6B6584
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e46cd;
/* rgb */ color: rgb(126, 70, 205);
/* oklch */ color: oklch(53.2% 0.199 298.4);
Tailwind
colors: {
  custom: {
    50: '#a97ddd',
    500: '#7e46cd',
    950: '#000000',
  },
}
SCSS
$custom: #7e46cd;
$custom-light: #a97ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46cd",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 205
  },
  "hsl": {
    "h": 264.889,
    "s": 57.447,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53188,
    "c": 0.19864,
    "h": 298.4
  },
  "luminance": 0.13224
}

Semantic roles & 50–950 ramp

primary
#7E46CD
secondary
#BCD49B
accent
#E147A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E46CD

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

Preview Lab → · Contrast checker → · Palette generator →

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