#7F35CA#7F35CA

#7F35CA is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.0% C 0.216 H 301.7°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#7F35CA
RGBrgb(127, 53, 202)
HSLhsl(270, 58%, 50%)
HSVhsv(270, 74%, 79%)
CMYKcmyk(37.1%, 73.8%, 0%, 20.8%)
CIE-LABlab(40.12, 58.86, -64.40)
CIE-LCHlch(40.12, 87.24, 312.43°)
OKLaboklab(51.02% 0.1133 -0.1837)
OKLCHoklch(51.02% 0.216 301.7)
XYZxyz(20.6836, 11.3224, 56.9614)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F35CA #80CA35
analogous
#3535CA #7F35CA #CA35CA
triadic
#7F35CA #CA7F35 #35CA7F
tetradic
#7F35CA #CA3535 #80CA35 #35CACA
square
#7F35CA #CA3535 #80CA35 #35CACA
split-complementary
#7F35CA #CACA35 #35CA35
monochromatic
#421C69 #61289A #7F35CA #9E65D7 #BC96E3

Accessibility & contrast

On white

6.43
#7F35CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7F35CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F35CA
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F35CA#FFFFFF#000000##FFFFFF
##7F35CA1.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#005EC7
Tritanopia (blue-blind)
#6F5B7D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f35ca;
/* rgb */ color: rgb(127, 53, 202);
/* oklch */ color: oklch(51.0% 0.216 301.7);
Tailwind
colors: {
  custom: {
    50: '#aa73db',
    500: '#7f35ca',
    950: '#000000',
  },
}
SCSS
$custom: #7f35ca;
$custom-light: #aa73db;
$custom-dark: #000000;
JSON
{
  "hex": "#7f35ca",
  "rgb": {
    "r": 127,
    "g": 53,
    "b": 202
  },
  "hsl": {
    "h": 269.799,
    "s": 58.431,
    "l": 50
  },
  "oklch": {
    "l": 0.51021,
    "c": 0.21584,
    "h": 301.7
  },
  "luminance": 0.11322
}

Semantic roles & 50–950 ramp

primary
#7F35CA
secondary
#AECF8C
accent
#E24694
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F35CA

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

Preview Lab → · Contrast checker → · Palette generator →

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