#7E35A4#7E35A4

#7E35A4 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.1% C 0.177 H 311.8°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7E35A4
RGBrgb(126, 53, 164)
HSLhsl(279, 51%, 43%)
HSVhsv(279, 68%, 64%)
CMYKcmyk(23.2%, 67.7%, 0%, 35.7%)
CIE-LABlab(37.23, 49.92, -46.66)
CIE-LCHlch(37.23, 68.33, 316.93°)
OKLaboklab(48.07% 0.1177 -0.1316)
OKLCHoklch(48.07% 0.177 311.8)
XYZxyz(16.5769, 9.6626, 36.1066)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E35A4 #5BA435
analogous
#4635A4 #7E35A4 #A43593
triadic
#7E35A4 #A47E35 #35A47E
tetradic
#7E35A4 #A44635 #5BA435 #3593A4
square
#7E35A4 #A44635 #5BA435 #3593A4
split-complementary
#7E35A4 #93A435 #35A446
monochromatic
#371747 #5A2676 #7E35A4 #9E50C6 #B77ED5

Accessibility & contrast

On white

7.16
#7E35A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7E35A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E35A4
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E35A4#FFFFFF#000000##FFFFFF
##7E35A41.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A7
Deuteranopia (green-blind)
#2959A1
Tritanopia (blue-blind)
#794C68
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e35a4;
/* rgb */ color: rgb(126, 53, 164);
/* oklch */ color: oklch(48.1% 0.177 311.8);
Tailwind
colors: {
  custom: {
    50: '#a772c0',
    500: '#7e35a4',
    950: '#000000',
  },
}
SCSS
$custom: #7e35a4;
$custom-light: #a772c0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e35a4",
  "rgb": {
    "r": 126,
    "g": 53,
    "b": 164
  },
  "hsl": {
    "h": 279.459,
    "s": 51.152,
    "l": 42.549
  },
  "oklch": {
    "l": 0.4807,
    "c": 0.17654,
    "h": 311.8
  },
  "luminance": 0.09662
}

Semantic roles & 50–950 ramp

primary
#7E35A4
secondary
#8FBE76
accent
#DB4D7E
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E35A4

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

Preview Lab → · Contrast checker → · Palette generator →

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