#7E35C2#7E35C2

#7E35C2 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.3% C 0.207 H 303.2°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#7E35C2
RGBrgb(126, 53, 194)
HSLhsl(271, 57%, 48%)
HSVhsv(271, 73%, 76%)
CMYKcmyk(35.1%, 72.7%, 0%, 23.9%)
CIE-LABlab(39.37, 56.79, -60.96)
CIE-LCHlch(39.37, 83.31, 312.97°)
OKLaboklab(50.27% 0.1135 -0.1736)
OKLCHoklch(50.27% 0.207 303.2)
XYZxyz(19.6126, 10.8769, 52.0947)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E35C2 #79C235
analogous
#3735C2 #7E35C2 #C235BF
triadic
#7E35C2 #C27E35 #35C27E
tetradic
#7E35C2 #C23735 #79C235 #35BFC2
square
#7E35C2 #C23735 #79C235 #35BFC2
split-complementary
#7E35C2 #BFC235 #35C237
monochromatic
#401B62 #5F2892 #7E35C2 #9C60D4 #BA91E1

Accessibility & contrast

On white

6.61
#7E35C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#7E35C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E35C2
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E35C2#FFFFFF#000000##FFFFFF
##7E35C21.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#005CBF
Tritanopia (blue-blind)
#705779
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e35c2;
/* rgb */ color: rgb(126, 53, 194);
/* oklch */ color: oklch(50.3% 0.207 303.2);
Tailwind
colors: {
  custom: {
    50: '#a973d5',
    500: '#7e35c2',
    950: '#000000',
  },
}
SCSS
$custom: #7e35c2;
$custom-light: #a973d5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e35c2",
  "rgb": {
    "r": 126,
    "g": 53,
    "b": 194
  },
  "hsl": {
    "h": 271.064,
    "s": 57.085,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50273,
    "c": 0.20745,
    "h": 303.2
  },
  "luminance": 0.10877
}

Semantic roles & 50–950 ramp

primary
#7E35C2
secondary
#A8CC87
accent
#E04791
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7E35C2

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

Preview Lab → · Contrast checker → · Palette generator →

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