#7F34D1#7F34D1

#7F34D1 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.5% C 0.224 H 300.2°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#7F34D1
RGBrgb(127, 52, 209)
HSLhsl(269, 63%, 51%)
HSVhsv(269, 75%, 82%)
CMYKcmyk(39.2%, 75.1%, 0%, 18%)
CIE-LABlab(40.53, 60.94, -67.78)
CIE-LCHlch(40.53, 91.15, 311.96°)
OKLaboklab(51.48% 0.1126 -0.1936)
OKLCHoklch(51.48% 0.224 300.2)
XYZxyz(21.4861, 11.5712, 61.4107)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34D1 #86D134
analogous
#3437D1 #7F34D1 #CD34D1
triadic
#7F34D1 #D17F34 #34D17F
tetradic
#7F34D1 #D13437 #86D134 #34D1CD
square
#7F34D1 #D13437 #86D134 #34D1CD
split-complementary
#7F34D1 #D1CD34 #37D134
monochromatic
#431A71 #6125A3 #7F34D1 #9E66DC #BE98E8

Accessibility & contrast

On white

6.34
#7F34D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#7F34D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34D1
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34D1#FFFFFF#000000##FFFFFF
##7F34D11.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD5
Deuteranopia (green-blind)
#005ECE
Tritanopia (blue-blind)
#6C5D81
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7f34d1;
/* rgb */ color: rgb(127, 52, 209);
/* oklch */ color: oklch(51.5% 0.224 300.2);
Tailwind
colors: {
  custom: {
    50: '#ab73e0',
    500: '#7f34d1',
    950: '#000000',
  },
}
SCSS
$custom: #7f34d1;
$custom-light: #ab73e0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34d1",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 209
  },
  "hsl": {
    "h": 268.662,
    "s": 63.052,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51481,
    "c": 0.224,
    "h": 300.2
  },
  "luminance": 0.11571
}

Semantic roles & 50–950 ramp

primary
#7F34D1
secondary
#B2D38E
accent
#E64298
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7F34D1

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

Preview Lab → · Contrast checker → · Palette generator →

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