#7F34BF#7F34BF

#7F34BF is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.1% C 0.206 H 304.5°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#7F34BF
RGBrgb(127, 52, 191)
HSLhsl(272, 57%, 48%)
HSVhsv(272, 73%, 75%)
CMYKcmyk(33.5%, 72.8%, 0%, 25.1%)
CIE-LABlab(39.12, 56.71, -59.60)
CIE-LCHlch(39.12, 82.27, 313.57°)
OKLaboklab(50.05% 0.1164 -0.1696)
OKLCHoklch(50.05% 0.206 304.5)
XYZxyz(19.3822, 10.7297, 50.3301)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34BF #74BF34
analogous
#3934BF #7F34BF #BF34BA
triadic
#7F34BF #BF7F34 #34BF7F
tetradic
#7F34BF #BF3934 #74BF34 #34BABF
square
#7F34BF #BF3934 #74BF34 #34BABF
split-complementary
#7F34BF #BABF34 #34BF39
monochromatic
#3F1A5F #5F278F #7F34BF #9D5DD3 #BA8DE0

Accessibility & contrast

On white

6.68
#7F34BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#7F34BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34BF
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34BF#FFFFFF#000000##FFFFFF
##7F34BF1.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#735677
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f34bf;
/* rgb */ color: rgb(127, 52, 191);
/* oklch */ color: oklch(50.1% 0.206 304.5);
Tailwind
colors: {
  custom: {
    50: '#aa72d3',
    500: '#7f34bf',
    950: '#000000',
  },
}
SCSS
$custom: #7f34bf;
$custom-light: #aa72d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34bf",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 191
  },
  "hsl": {
    "h": 272.374,
    "s": 57.202,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50053,
    "c": 0.20573,
    "h": 304.5
  },
  "luminance": 0.1073
}

Semantic roles & 50–950 ramp

primary
#7F34BF
secondary
#A5CA84
accent
#E0478E
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7F34BF

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

Preview Lab → · Contrast checker → · Palette generator →

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