#7E35BA#7E35BA

#7E35BA is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.7% C 0.199 H 305.2°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#7E35BA
RGBrgb(126, 53, 186)
HSLhsl(273, 56%, 47%)
HSVhsv(273, 72%, 73%)
CMYKcmyk(32.3%, 71.5%, 0%, 27.1%)
CIE-LABlab(38.77, 54.92, -57.24)
CIE-LCHlch(38.77, 79.32, 313.81°)
OKLaboklab(49.66% 0.115 -0.1627)
OKLCHoklch(49.66% 0.199 305.2)
XYZxyz(18.7382, 10.5271, 47.4896)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E35BA #71BA35
analogous
#3B35BA #7E35BA #BA35B4
triadic
#7E35BA #BA7E35 #35BA7E
tetradic
#7E35BA #BA3B35 #71BA35 #35B4BA
square
#7E35BA #BA3B35 #71BA35 #35B4BA
split-complementary
#7E35BA #B4BA35 #35BA3B
monochromatic
#3D1A5B #5E278A #7E35BA #9C5CD0 #B98BDE

Accessibility & contrast

On white

6.76
#7E35BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7E35BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E35BA
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E35BA#FFFFFF#000000##FFFFFF
##7E35BA1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#735474
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e35ba;
/* rgb */ color: rgb(126, 53, 186);
/* oklch */ color: oklch(49.7% 0.199 305.2);
Tailwind
colors: {
  custom: {
    50: '#a873d0',
    500: '#7e35ba',
    950: '#000000',
  },
}
SCSS
$custom: #7e35ba;
$custom-light: #a873d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e35ba",
  "rgb": {
    "r": 126,
    "g": 53,
    "b": 186
  },
  "hsl": {
    "h": 272.932,
    "s": 55.649,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4966,
    "c": 0.19921,
    "h": 305.2
  },
  "luminance": 0.10527
}

Semantic roles & 50–950 ramp

primary
#7E35BA
secondary
#A2C882
accent
#DF498D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E35BA

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

Preview Lab → · Contrast checker → · Palette generator →

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