#7F34BA#7F34BA

#7F34BA is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.7% C 0.201 H 305.8°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#7F34BA
RGBrgb(127, 52, 186)
HSLhsl(274, 56%, 47%)
HSVhsv(274, 72%, 73%)
CMYKcmyk(31.7%, 72%, 0%, 27.1%)
CIE-LABlab(38.75, 55.55, -57.27)
CIE-LCHlch(38.75, 79.79, 314.13°)
OKLaboklab(49.67% 0.1173 -0.1627)
OKLCHoklch(49.67% 0.201 305.8)
XYZxyz(18.8414, 10.5133, 47.4815)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34BA #6FBA34
analogous
#3C34BA #7F34BA #BA34B2
triadic
#7F34BA #BA7F34 #34BA7F
tetradic
#7F34BA #BA3C34 #6FBA34 #34B2BA
square
#7F34BA #BA3C34 #6FBA34 #34B2BA
split-complementary
#7F34BA #B2BA34 #34BA3C
monochromatic
#3E195A #5E278A #7F34BA #9D5AD1 #B98ADE

Accessibility & contrast

On white

6.77
#7F34BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7F34BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34BA
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34BA#FFFFFF#000000##FFFFFF
##7F34BA1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#745474
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7f34ba;
/* rgb */ color: rgb(127, 52, 186);
/* oklch */ color: oklch(49.7% 0.201 305.8);
Tailwind
colors: {
  custom: {
    50: '#a972d0',
    500: '#7f34ba',
    950: '#000000',
  },
}
SCSS
$custom: #7f34ba;
$custom-light: #a972d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34ba",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 186
  },
  "hsl": {
    "h": 273.582,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49671,
    "c": 0.20063,
    "h": 305.8
  },
  "luminance": 0.10513
}

Semantic roles & 50–950 ramp

primary
#7F34BA
secondary
#A1C881
accent
#E0488B
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F34BA

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

Preview Lab → · Contrast checker → · Palette generator →

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