#7F34CF#7F34CF

#7F34CF is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.3% C 0.222 H 300.6°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#7F34CF
RGBrgb(127, 52, 207)
HSLhsl(269, 62%, 51%)
HSVhsv(269, 75%, 81%)
CMYKcmyk(38.6%, 74.9%, 0%, 18.8%)
CIE-LABlab(40.37, 60.46, -66.89)
CIE-LCHlch(40.37, 90.17, 312.11°)
OKLaboklab(51.32% 0.1131 -0.191)
OKLCHoklch(51.32% 0.222 300.6)
XYZxyz(21.2401, 11.4728, 60.1148)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34CF #84CF34
analogous
#3436CF #7F34CF #CC34CF
triadic
#7F34CF #CF7F34 #34CF7F
tetradic
#7F34CF #CF3436 #84CF34 #34CFCC
square
#7F34CF #CF3436 #84CF34 #34CFCC
split-complementary
#7F34CF #CFCC34 #36CF34
monochromatic
#431A6E #6126A0 #7F34CF #9E65DB #BD97E6

Accessibility & contrast

On white

6.37
#7F34CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#7F34CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34CF
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34CF#FFFFFF#000000##FFFFFF
##7F34CF1.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#6D5C80
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #7f34cf;
/* rgb */ color: rgb(127, 52, 207);
/* oklch */ color: oklch(51.3% 0.222 300.6);
Tailwind
colors: {
  custom: {
    50: '#ab73df',
    500: '#7f34cf',
    950: '#000000',
  },
}
SCSS
$custom: #7f34cf;
$custom-light: #ab73df;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34cf",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 207
  },
  "hsl": {
    "h": 269.032,
    "s": 61.753,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51318,
    "c": 0.22198,
    "h": 300.6
  },
  "luminance": 0.11473
}

Semantic roles & 50–950 ramp

primary
#7F34CF
secondary
#B1D28D
accent
#E54397
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F34CF

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

Preview Lab → · Contrast checker → · Palette generator →

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