#7F34AF#7F34AF

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

Color values

HEX#7F34AF
RGBrgb(127, 52, 175)
HSLhsl(277, 54%, 45%)
HSVhsv(277, 70%, 69%)
CMYKcmyk(27.4%, 70.3%, 0%, 31.4%)
CIE-LABlab(37.96, 53.05, -52.05)
CIE-LCHlch(37.96, 74.32, 315.54°)
OKLaboklab(48.86% 0.119 -0.1474)
OKLCHoklch(48.86% 0.189 308.9)
XYZxyz(17.7167, 10.0635, 41.5583)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34AF #64AF34
analogous
#4134AF #7F34AF #AF34A2
triadic
#7F34AF #AF7F34 #34AF7F
tetradic
#7F34AF #AF4134 #64AF34 #34A2AF
square
#7F34AF #AF4134 #64AF34 #34A2AF
split-complementary
#7F34AF #A2AF34 #34AF41
monochromatic
#3B1851 #5D2680 #7F34AF #9D54CC #B883DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F34AF#FFFFFF#000000##FFFFFF
##7F34AF1.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)
#0056B3
Deuteranopia (green-blind)
#195AAC
Tritanopia (blue-blind)
#784F6E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f34af;
/* rgb */ color: rgb(127, 52, 175);
/* oklch */ color: oklch(48.9% 0.189 308.9);
Tailwind
colors: {
  custom: {
    50: '#a872c8',
    500: '#7f34af',
    950: '#000000',
  },
}
SCSS
$custom: #7f34af;
$custom-light: #a872c8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34af",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 175
  },
  "hsl": {
    "h": 276.585,
    "s": 54.185,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48857,
    "c": 0.18942,
    "h": 308.9
  },
  "luminance": 0.10063
}

Semantic roles & 50–950 ramp

primary
#7F34AF
secondary
#97C47B
accent
#DE4A84
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F34AF

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

Preview Lab → · Contrast checker → · Palette generator →

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