#7F34B3#7F34B3

#7F34B3 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.1% C 0.194 H 307.7°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7F34B3
RGBrgb(127, 52, 179)
HSLhsl(275, 55%, 45%)
HSVhsv(275, 71%, 70%)
CMYKcmyk(29.1%, 70.9%, 0%, 29.8%)
CIE-LABlab(38.24, 53.95, -53.96)
CIE-LCHlch(38.24, 76.31, 314.99°)
OKLaboklab(49.15% 0.1184 -0.153)
OKLCHoklch(49.15% 0.194 307.7)
XYZxyz(18.1154, 10.2229, 43.6580)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34B3 #68B334
analogous
#4034B3 #7F34B3 #B334A7
triadic
#7F34B3 #B37F34 #34B37F
tetradic
#7F34B3 #B34034 #68B334 #34A7B3
square
#7F34B3 #B34034 #68B334 #34A7B3
split-complementary
#7F34B3 #A7B334 #34B340
monochromatic
#3C1854 #5D2684 #7F34B3 #9D56CE #B886DC

Accessibility & contrast

On white

6.90
#7F34B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7F34B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F34B3
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34B3#FFFFFF#000000##FFFFFF
##7F34B31.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B7
Deuteranopia (green-blind)
#0F5BB0
Tritanopia (blue-blind)
#775170
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f34b3;
/* rgb */ color: rgb(127, 52, 179);
/* oklch */ color: oklch(49.1% 0.194 307.7);
Tailwind
colors: {
  custom: {
    50: '#a972ca',
    500: '#7f34b3',
    950: '#000000',
  },
}
SCSS
$custom: #7f34b3;
$custom-light: #a972ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34b3",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 179
  },
  "hsl": {
    "h": 275.433,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.49149,
    "c": 0.1935,
    "h": 307.7
  },
  "luminance": 0.10223
}

Semantic roles & 50–950 ramp

primary
#7F34B3
secondary
#9BC57D
accent
#DE4986
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F34B3

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

Preview Lab → · Contrast checker → · Palette generator →

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