#7E35A3#7E35A3

#7E35A3 is a mid, vivid violet. Relative luminance 0.096; OKLCH L 48.0% C 0.175 H 312.1°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#7E35A3
RGBrgb(126, 53, 163)
HSLhsl(280, 51%, 42%)
HSVhsv(280, 67%, 64%)
CMYKcmyk(22.7%, 67.5%, 0%, 36.1%)
CIE-LABlab(37.16, 49.70, -46.16)
CIE-LCHlch(37.16, 67.83, 317.11°)
OKLaboklab(48% 0.1177 -0.1302)
OKLCHoklch(48% 0.176 312.1)
XYZxyz(16.4869, 9.6266, 35.6328)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E35A3 #5AA335
analogous
#4735A3 #7E35A3 #A33591
triadic
#7E35A3 #A37E35 #35A37E
tetradic
#7E35A3 #A34735 #5AA335 #3591A3
square
#7E35A3 #A34735 #5AA335 #3591A3
split-complementary
#7E35A3 #91A335 #35A347
monochromatic
#371747 #5A2675 #7E35A3 #9E4FC6 #B77ED5

Accessibility & contrast

On white

7.18
#7E35A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E35A3
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E35A3#FFFFFF#000000##FFFFFF
##7E35A31.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A6
Deuteranopia (green-blind)
#2B59A0
Tritanopia (blue-blind)
#7A4B67
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e35a3;
/* rgb */ color: rgb(126, 53, 163);
/* oklch */ color: oklch(48.0% 0.175 312.1);
Tailwind
colors: {
  custom: {
    50: '#a772bf',
    500: '#7e35a3',
    950: '#000000',
  },
}
SCSS
$custom: #7e35a3;
$custom-light: #a772bf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e35a3",
  "rgb": {
    "r": 126,
    "g": 53,
    "b": 163
  },
  "hsl": {
    "h": 279.818,
    "s": 50.926,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48001,
    "c": 0.1755,
    "h": 312.1
  },
  "luminance": 0.09626
}

Semantic roles & 50–950 ramp

primary
#7E35A3
secondary
#8EBE76
accent
#DA4D7D
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E35A3

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

Preview Lab → · Contrast checker → · Palette generator →

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