#7F34BC#7F34BC

#7F34BC is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.8% C 0.203 H 305.3°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7F34BC
RGBrgb(127, 52, 188)
HSLhsl(273, 57%, 47%)
HSVhsv(273, 72%, 74%)
CMYKcmyk(32.4%, 72.3%, 0%, 26.3%)
CIE-LABlab(38.90, 56.01, -58.21)
CIE-LCHlch(38.90, 80.78, 313.90°)
OKLaboklab(49.82% 0.117 -0.1655)
OKLCHoklch(49.82% 0.203 305.3)
XYZxyz(19.0555, 10.5990, 48.6091)
Luminance0.1060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34BC #71BC34
analogous
#3B34BC #7F34BC #BC34B5
triadic
#7F34BC #BC7F34 #34BC7F
tetradic
#7F34BC #BC3B34 #71BC34 #34B5BC
square
#7F34BC #BC3B34 #71BC34 #34B5BC
split-complementary
#7F34BC #B5BC34 #34BC3B
monochromatic
#3E195C #5F278C #7F34BC #9D5BD2 #BA8BDF

Accessibility & contrast

On white

6.73
#7F34BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7F34BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34BC
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34BC#FFFFFF#000000##FFFFFF
##7F34BC1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#745475
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7f34bc;
/* rgb */ color: rgb(127, 52, 188);
/* oklch */ color: oklch(49.8% 0.203 305.3);
Tailwind
colors: {
  custom: {
    50: '#a972d1',
    500: '#7f34bc',
    950: '#000000',
  },
}
SCSS
$custom: #7f34bc;
$custom-light: #a972d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34bc",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 188
  },
  "hsl": {
    "h": 273.088,
    "s": 56.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49823,
    "c": 0.20267,
    "h": 305.3
  },
  "luminance": 0.10599
}

Semantic roles & 50–950 ramp

primary
#7F34BC
secondary
#A2C983
accent
#E0488C
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F34BC

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

Preview Lab → · Contrast checker → · Palette generator →

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