#7F34AB#7F34AB

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

Color values

HEX#7F34AB
RGBrgb(127, 52, 171)
HSLhsl(278, 53%, 44%)
HSVhsv(278, 70%, 67%)
CMYKcmyk(25.7%, 69.6%, 0%, 32.9%)
CIE-LABlab(37.68, 52.15, -50.12)
CIE-LCHlch(37.68, 72.33, 316.14°)
OKLaboklab(48.57% 0.1194 -0.1417)
OKLCHoklch(48.57% 0.185 310.1)
XYZxyz(17.3296, 9.9086, 39.5198)
Luminance0.0991 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34AB #60AB34
analogous
#4334AB #7F34AB #AB349B
triadic
#7F34AB #AB7F34 #34AB7F
tetradic
#7F34AB #AB4334 #60AB34 #349BAB
square
#7F34AB #AB4334 #60AB34 #349BAB
split-complementary
#7F34AB #9BAB34 #34AB43
monochromatic
#39174D #5C267C #7F34AB #9E52CA #B881D9

Accessibility & contrast

On white

7.04
#7F34AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7F34AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F34AB
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34AB#FFFFFF#000000##FFFFFF
##7F34AB1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AE
Deuteranopia (green-blind)
#205AA8
Tritanopia (blue-blind)
#794E6C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f34ab;
/* rgb */ color: rgb(127, 52, 171);
/* oklch */ color: oklch(48.6% 0.185 310.1);
Tailwind
colors: {
  custom: {
    50: '#a872c5',
    500: '#7f34ab',
    950: '#000000',
  },
}
SCSS
$custom: #7f34ab;
$custom-light: #a872c5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34ab",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 277.815,
    "s": 53.363,
    "l": 43.725
  },
  "oklch": {
    "l": 0.48571,
    "c": 0.18535,
    "h": 310.1
  },
  "luminance": 0.09908
}

Semantic roles & 50–950 ramp

primary
#7F34AB
secondary
#94C279
accent
#DD4B81
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F34AB

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

Preview Lab → · Contrast checker → · Palette generator →

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