#7F34C4#7F34C4

#7F34C4 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.4% C 0.211 H 303.2°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#7F34C4
RGBrgb(127, 52, 196)
HSLhsl(271, 58%, 49%)
HSVhsv(271, 73%, 77%)
CMYKcmyk(35.2%, 73.5%, 0%, 23.1%)
CIE-LABlab(39.50, 57.87, -61.91)
CIE-LCHlch(39.50, 84.75, 313.07°)
OKLaboklab(50.44% 0.1155 -0.1764)
OKLCHoklch(50.44% 0.211 303.2)
XYZxyz(19.9419, 10.9535, 53.2775)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34C4 #79C434
analogous
#3734C4 #7F34C4 #C434C1
triadic
#7F34C4 #C47F34 #34C47F
tetradic
#7F34C4 #C43734 #79C434 #34C1C4
square
#7F34C4 #C43734 #79C434 #34C1C4
split-complementary
#7F34C4 #C1C434 #34C437
monochromatic
#401A63 #602794 #7F34C4 #9D60D5 #BB91E2

Accessibility & contrast

On white

6.58
#7F34C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7F34C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34C4
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34C4#FFFFFF#000000##FFFFFF
##7F34C41.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC8
Deuteranopia (green-blind)
#005DC1
Tritanopia (blue-blind)
#715879
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7f34c4;
/* rgb */ color: rgb(127, 52, 196);
/* oklch */ color: oklch(50.4% 0.211 303.2);
Tailwind
colors: {
  custom: {
    50: '#aa73d7',
    500: '#7f34c4',
    950: '#000000',
  },
}
SCSS
$custom: #7f34c4;
$custom-light: #aa73d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34c4",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 196
  },
  "hsl": {
    "h": 271.25,
    "s": 58.065,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50441,
    "c": 0.21081,
    "h": 303.2
  },
  "luminance": 0.10954
}

Semantic roles & 50–950 ramp

primary
#7F34C4
secondary
#A8CC87
accent
#E14791
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F34C4

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

Preview Lab → · Contrast checker → · Palette generator →

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