#7F34AC#7F34AC

#7F34AC is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.6% C 0.186 H 309.8°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#7F34AC
RGBrgb(127, 52, 172)
HSLhsl(278, 54%, 44%)
HSVhsv(278, 70%, 67%)
CMYKcmyk(26.2%, 69.8%, 0%, 32.5%)
CIE-LABlab(37.75, 52.38, -50.60)
CIE-LCHlch(37.75, 72.83, 315.99°)
OKLaboklab(48.64% 0.1193 -0.1431)
OKLCHoklch(48.64% 0.186 309.8)
XYZxyz(17.4253, 9.9469, 40.0237)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34AC #61AC34
analogous
#4334AC #7F34AC #AC349D
triadic
#7F34AC #AC7F34 #34AC7F
tetradic
#7F34AC #AC4334 #61AC34 #349DAC
square
#7F34AC #AC4334 #61AC34 #349DAC
split-complementary
#7F34AC #9DAC34 #34AC43
monochromatic
#3A184E #5C267D #7F34AC #9E52CB #B881D9

Accessibility & contrast

On white

7.02
#7F34AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7F34AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F34AC
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34AC#FFFFFF#000000##FFFFFF
##7F34AC1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B0
Deuteranopia (green-blind)
#1F5AA9
Tritanopia (blue-blind)
#794E6C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f34ac;
/* rgb */ color: rgb(127, 52, 172);
/* oklch */ color: oklch(48.6% 0.186 309.8);
Tailwind
colors: {
  custom: {
    50: '#a872c5',
    500: '#7f34ac',
    950: '#000000',
  },
}
SCSS
$custom: #7f34ac;
$custom-light: #a872c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34ac",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 277.5,
    "s": 53.571,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48642,
    "c": 0.18636,
    "h": 309.8
  },
  "luminance": 0.09947
}

Semantic roles & 50–950 ramp

primary
#7F34AC
secondary
#95C279
accent
#DD4B82
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F34AC

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

Preview Lab → · Contrast checker → · Palette generator →

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