#7E35B5#7E35B5

#7E35B5 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.3% C 0.194 H 306.6°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#7E35B5
RGBrgb(126, 53, 181)
HSLhsl(274, 55%, 46%)
HSVhsv(274, 71%, 71%)
CMYKcmyk(30.4%, 70.7%, 0%, 29%)
CIE-LABlab(38.41, 53.76, -54.88)
CIE-LCHlch(38.41, 76.82, 314.41°)
OKLaboklab(49.29% 0.1157 -0.1558)
OKLCHoklch(49.29% 0.194 306.6)
XYZxyz(18.2160, 10.3182, 44.7391)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E35B5 #6CB535
analogous
#3E35B5 #7E35B5 #B535AC
triadic
#7E35B5 #B57E35 #35B57E
tetradic
#7E35B5 #B53E35 #6CB535 #35ACB5
square
#7E35B5 #B53E35 #6CB535 #35ACB5
split-complementary
#7E35B5 #ACB535 #35B53E
monochromatic
#3C1956 #5D2786 #7E35B5 #9C59CE #B888DC

Accessibility & contrast

On white

6.85
#7E35B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7E35B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E35B5
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E35B5#FFFFFF#000000##FFFFFF
##7E35B51.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B9
Deuteranopia (green-blind)
#065BB2
Tritanopia (blue-blind)
#755271
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e35b5;
/* rgb */ color: rgb(126, 53, 181);
/* oklch */ color: oklch(49.3% 0.194 306.6);
Tailwind
colors: {
  custom: {
    50: '#a872cc',
    500: '#7e35b5',
    950: '#000000',
  },
}
SCSS
$custom: #7e35b5;
$custom-light: #a872cc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e35b5",
  "rgb": {
    "r": 126,
    "g": 53,
    "b": 181
  },
  "hsl": {
    "h": 274.219,
    "s": 54.701,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49285,
    "c": 0.19406,
    "h": 306.6
  },
  "luminance": 0.10318
}

Semantic roles & 50–950 ramp

primary
#7E35B5
secondary
#9EC680
accent
#DE4A89
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E35B5

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

Preview Lab → · Contrast checker → · Palette generator →

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