#7F35AD#7F35AD

#7F35AD is a mid, vivid violet. Relative luminance 0.101; OKLCH L 48.8% C 0.186 H 309.4°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#7F35AD
RGBrgb(127, 53, 173)
HSLhsl(277, 53%, 44%)
HSVhsv(277, 69%, 68%)
CMYKcmyk(26.6%, 69.4%, 0%, 32.2%)
CIE-LABlab(37.98, 52.15, -50.82)
CIE-LCHlch(37.98, 72.82, 315.74°)
OKLaboklab(48.83% 0.1181 -0.1438)
OKLCHoklch(48.83% 0.186 309.4)
XYZxyz(17.5668, 10.0757, 40.5465)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F35AD #63AD35
analogous
#4335AD #7F35AD #AD359F
triadic
#7F35AD #AD7F35 #35AD7F
tetradic
#7F35AD #AD4335 #63AD35 #359FAD
square
#7F35AD #AD4335 #63AD35 #359FAD
split-complementary
#7F35AD #9FAD35 #35AD43
monochromatic
#3A184F #5D277E #7F35AD #9D54CB #B883D9

Accessibility & contrast

On white

6.97
#7F35AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7F35AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F35AD
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F35AD#FFFFFF#000000##FFFFFF
##7F35AD1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B1
Deuteranopia (green-blind)
#1E5AAA
Tritanopia (blue-blind)
#784F6D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f35ad;
/* rgb */ color: rgb(127, 53, 173);
/* oklch */ color: oklch(48.8% 0.186 309.4);
Tailwind
colors: {
  custom: {
    50: '#a872c6',
    500: '#7f35ad',
    950: '#000000',
  },
}
SCSS
$custom: #7f35ad;
$custom-light: #a872c6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f35ad",
  "rgb": {
    "r": 127,
    "g": 53,
    "b": 173
  },
  "hsl": {
    "h": 277,
    "s": 53.097,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48829,
    "c": 0.18611,
    "h": 309.4
  },
  "luminance": 0.10075
}

Semantic roles & 50–950 ramp

primary
#7F35AD
secondary
#97C37B
accent
#DD4B83
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F35AD

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

Preview Lab → · Contrast checker → · Palette generator →

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