#7F34AE#7F34AE

#7F34AE is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.8% C 0.188 H 309.2°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#7F34AE
RGBrgb(127, 52, 174)
HSLhsl(277, 54%, 44%)
HSVhsv(277, 70%, 68%)
CMYKcmyk(27%, 70.1%, 0%, 31.8%)
CIE-LABlab(37.89, 52.82, -51.57)
CIE-LCHlch(37.89, 73.82, 315.69°)
OKLaboklab(48.79% 0.1191 -0.146)
OKLCHoklch(48.79% 0.188 309.2)
XYZxyz(17.6188, 10.0243, 41.0429)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34AE #63AE34
analogous
#4234AE #7F34AE #AE34A0
triadic
#7F34AE #AE7F34 #34AE7F
tetradic
#7F34AE #AE4234 #63AE34 #34A0AE
square
#7F34AE #AE4234 #63AE34 #34A0AE
split-complementary
#7F34AE #A0AE34 #34AE42
monochromatic
#3A1850 #5D267F #7F34AE #9D53CC #B883DA

Accessibility & contrast

On white

6.99
#7F34AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#7F34AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34AE
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34AE#FFFFFF#000000##FFFFFF
##7F34AE1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f34ae;
/* rgb */ color: rgb(127, 52, 174);
/* oklch */ color: oklch(48.8% 0.188 309.2);
Tailwind
colors: {
  custom: {
    50: '#a872c7',
    500: '#7f34ae',
    950: '#000000',
  },
}
SCSS
$custom: #7f34ae;
$custom-light: #a872c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34ae",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 174
  },
  "hsl": {
    "h": 276.885,
    "s": 53.982,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48785,
    "c": 0.1884,
    "h": 309.2
  },
  "luminance": 0.10024
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F34AE

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

Preview Lab → · Contrast checker → · Palette generator →

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