#7F35B2#7F35B2

#7F35B2 is a mid, vivid violet. Relative luminance 0.103; OKLCH L 49.2% C 0.191 H 307.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#7F35B2
RGBrgb(127, 53, 178)
HSLhsl(276, 54%, 45%)
HSVhsv(276, 70%, 70%)
CMYKcmyk(28.7%, 70.2%, 0%, 30.2%)
CIE-LABlab(38.33, 53.28, -53.23)
CIE-LCHlch(38.33, 75.31, 315.03°)
OKLaboklab(49.19% 0.1175 -0.1509)
OKLCHoklch(49.19% 0.191 307.9)
XYZxyz(18.0597, 10.2728, 43.1423)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F35B2 #68B235
analogous
#4035B2 #7F35B2 #B235A6
triadic
#7F35B2 #B27F35 #35B27F
tetradic
#7F35B2 #B24035 #68B235 #35A6B2
square
#7F35B2 #B24035 #68B235 #35A6B2
split-complementary
#7F35B2 #A6B235 #35B240
monochromatic
#3C1954 #5D2783 #7F35B2 #9D57CD #B886DB

Accessibility & contrast

On white

6.87
#7F35B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7F35B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F35B2
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F35B2#FFFFFF#000000##FFFFFF
##7F35B21.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#145BAF
Tritanopia (blue-blind)
#775170
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f35b2;
/* rgb */ color: rgb(127, 53, 178);
/* oklch */ color: oklch(49.2% 0.191 307.9);
Tailwind
colors: {
  custom: {
    50: '#a872ca',
    500: '#7f35b2',
    950: '#000000',
  },
}
SCSS
$custom: #7f35b2;
$custom-light: #a872ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f35b2",
  "rgb": {
    "r": 127,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 275.52,
    "s": 54.113,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49189,
    "c": 0.19124,
    "h": 307.9
  },
  "luminance": 0.10273
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F35B2

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

Preview Lab → · Contrast checker → · Palette generator →

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