#7E46D1#7E46D1

#7E46D1 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.5% C 0.203 H 297.6°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#7E46D1
RGBrgb(126, 70, 209)
HSLhsl(264, 60%, 55%)
HSVhsv(264, 67%, 82%)
CMYKcmyk(39.7%, 66.5%, 0%, 18%)
CIE-LABlab(43.39, 52.40, -63.13)
CIE-LCHlch(43.39, 82.05, 309.69°)
OKLaboklab(53.49% 0.094 -0.1801)
OKLCHoklch(53.49% 0.203 297.6)
XYZxyz(22.3000, 13.4190, 61.7245)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E46D1 #99D146
analogous
#4653D1 #7E46D1 #C446D1
triadic
#7E46D1 #D17E46 #46D17E
tetradic
#7E46D1 #D14653 #99D146 #46D1C4
square
#7E46D1 #D14653 #99D146 #46D1C4
split-complementary
#7E46D1 #D1C446 #53D146
monochromatic
#451F7D #602BAE #7E46D1 #A077DD #C2A8E9

Accessibility & contrast

On white

5.70
#7E46D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#7E46D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E46D1
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E46D1#FFFFFF#000000##FFFFFF
##7E46D11.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D5
Deuteranopia (green-blind)
#0065CE
Tritanopia (blue-blind)
#6A6786
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e46d1;
/* rgb */ color: rgb(126, 70, 209);
/* oklch */ color: oklch(53.5% 0.203 297.6);
Tailwind
colors: {
  custom: {
    50: '#a97de0',
    500: '#7e46d1',
    950: '#000000',
  },
}
SCSS
$custom: #7e46d1;
$custom-light: #a97de0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e46d1",
  "rgb": {
    "r": 126,
    "g": 70,
    "b": 209
  },
  "hsl": {
    "h": 264.173,
    "s": 60.173,
    "l": 54.706
  },
  "oklch": {
    "l": 0.53487,
    "c": 0.20317,
    "h": 297.6
  },
  "luminance": 0.13419
}

Semantic roles & 50–950 ramp

primary
#7E46D1
secondary
#BFD79C
accent
#E344A3
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7E46D1

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

Preview Lab → · Contrast checker → · Palette generator →

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