#7F34BD#7F34BD

#7F34BD is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.9% C 0.204 H 305.0°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7F34BD
RGBrgb(127, 52, 189)
HSLhsl(273, 57%, 47%)
HSVhsv(273, 72%, 74%)
CMYKcmyk(32.8%, 72.5%, 0%, 25.9%)
CIE-LABlab(38.97, 56.25, -58.67)
CIE-LCHlch(38.97, 81.28, 313.79°)
OKLaboklab(49.9% 0.1168 -0.1669)
OKLCHoklch(49.9% 0.204 305)
XYZxyz(19.1636, 10.6422, 49.1788)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34BD #72BD34
analogous
#3B34BD #7F34BD #BD34B6
triadic
#7F34BD #BD7F34 #34BD7F
tetradic
#7F34BD #BD3B34 #72BD34 #34B6BD
square
#7F34BD #BD3B34 #72BD34 #34B6BD
split-complementary
#7F34BD #B6BD34 #34BD3B
monochromatic
#3E1A5D #5F278D #7F34BD #9D5CD2 #BA8CDF

Accessibility & contrast

On white

6.71
#7F34BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7F34BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34BD
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34BD#FFFFFF#000000##FFFFFF
##7F34BD1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC1
Deuteranopia (green-blind)
#005CBA
Tritanopia (blue-blind)
#735575
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f34bd;
/* rgb */ color: rgb(127, 52, 189);
/* oklch */ color: oklch(49.9% 0.204 305.0);
Tailwind
colors: {
  custom: {
    50: '#a972d2',
    500: '#7f34bd',
    950: '#000000',
  },
}
SCSS
$custom: #7f34bd;
$custom-light: #a972d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34bd",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 189
  },
  "hsl": {
    "h": 272.847,
    "s": 56.846,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49899,
    "c": 0.20369,
    "h": 305
  },
  "luminance": 0.10642
}

Semantic roles & 50–950 ramp

primary
#7F34BD
secondary
#A3CA83
accent
#E0488D
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7F34BD

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

Preview Lab → · Contrast checker → · Palette generator →

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