#7E35B2#7E35B2

#7E35B2 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.1% C 0.191 H 307.5°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#7E35B2
RGBrgb(126, 53, 178)
HSLhsl(275, 54%, 45%)
HSVhsv(275, 70%, 70%)
CMYKcmyk(29.2%, 70.2%, 0%, 30.2%)
CIE-LABlab(38.19, 53.07, -53.45)
CIE-LCHlch(38.19, 75.32, 314.79°)
OKLaboklab(49.06% 0.1162 -0.1516)
OKLCHoklch(49.06% 0.191 307.5)
XYZxyz(17.9115, 10.1964, 43.1354)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E35B2 #69B235
analogous
#3F35B2 #7E35B2 #B235A7
triadic
#7E35B2 #B27E35 #35B27E
tetradic
#7E35B2 #B23F35 #69B235 #35A7B2
square
#7E35B2 #B23F35 #69B235 #35A7B2
split-complementary
#7E35B2 #A7B235 #35B23F
monochromatic
#3B1954 #5D2783 #7E35B2 #9C57CD #B886DB

Accessibility & contrast

On white

6.91
#7E35B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7E35B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E35B2
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E35B2#FFFFFF#000000##FFFFFF
##7E35B21.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#115BAF
Tritanopia (blue-blind)
#765170
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e35b2;
/* rgb */ color: rgb(126, 53, 178);
/* oklch */ color: oklch(49.1% 0.191 307.5);
Tailwind
colors: {
  custom: {
    50: '#a872ca',
    500: '#7e35b2',
    950: '#000000',
  },
}
SCSS
$custom: #7e35b2;
$custom-light: #a872ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7e35b2",
  "rgb": {
    "r": 126,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 275.04,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49064,
    "c": 0.19096,
    "h": 307.5
  },
  "luminance": 0.10196
}

Semantic roles & 50–950 ramp

primary
#7E35B2
secondary
#9BC57E
accent
#DD4A88
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E35B2

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

Preview Lab → · Contrast checker → · Palette generator →

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