#7F34BB#7F34BB

#7F34BB is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.7% C 0.202 H 305.5°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#7F34BB
RGBrgb(127, 52, 187)
HSLhsl(273, 56%, 47%)
HSVhsv(273, 72%, 73%)
CMYKcmyk(32.1%, 72.2%, 0%, 26.7%)
CIE-LABlab(38.82, 55.78, -57.74)
CIE-LCHlch(38.82, 80.28, 314.01°)
OKLaboklab(49.75% 0.1172 -0.1641)
OKLCHoklch(49.75% 0.202 305.5)
XYZxyz(18.9480, 10.5560, 48.0434)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34BB #70BB34
analogous
#3B34BB #7F34BB #BB34B4
triadic
#7F34BB #BB7F34 #34BB7F
tetradic
#7F34BB #BB3B34 #70BB34 #34B4BB
square
#7F34BB #BB3B34 #70BB34 #34B4BB
split-complementary
#7F34BB #B4BB34 #34BB3B
monochromatic
#3E195B #5E278B #7F34BB #9D5BD1 #B98BDF

Accessibility & contrast

On white

6.75
#7F34BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7F34BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34BB
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34BB#FFFFFF#000000##FFFFFF
##7F34BB1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f34bb;
/* rgb */ color: rgb(127, 52, 187);
/* oklch */ color: oklch(49.7% 0.202 305.5);
Tailwind
colors: {
  custom: {
    50: '#a972d0',
    500: '#7f34bb',
    950: '#000000',
  },
}
SCSS
$custom: #7f34bb;
$custom-light: #a972d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34bb",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 273.333,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49747,
    "c": 0.20165,
    "h": 305.5
  },
  "luminance": 0.10556
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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