#7F34B2#7F34B2

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

Color values

HEX#7F34B2
RGBrgb(127, 52, 178)
HSLhsl(276, 55%, 45%)
HSVhsv(276, 71%, 70%)
CMYKcmyk(28.7%, 70.8%, 0%, 30.2%)
CIE-LABlab(38.17, 53.73, -53.49)
CIE-LCHlch(38.17, 75.81, 315.13°)
OKLaboklab(49.08% 0.1186 -0.1516)
OKLCHoklch(49.08% 0.192 308)
XYZxyz(18.0146, 10.1826, 43.1273)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F34B2 #67B234
analogous
#4034B2 #7F34B2 #B234A6
triadic
#7F34B2 #B27F34 #34B27F
tetradic
#7F34B2 #B24034 #67B234 #34A6B2
square
#7F34B2 #B24034 #67B234 #34A6B2
split-complementary
#7F34B2 #A6B234 #34B240
monochromatic
#3B1853 #5D2683 #7F34B2 #9D56CE #B885DB

Accessibility & contrast

On white

6.92
#7F34B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7F34B2
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F34B2#FFFFFF#000000##FFFFFF
##7F34B21.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#125BAF
Tritanopia (blue-blind)
#77506F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7f34b2;
/* rgb */ color: rgb(127, 52, 178);
/* oklch */ color: oklch(49.1% 0.192 308.0);
Tailwind
colors: {
  custom: {
    50: '#a972ca',
    500: '#7f34b2',
    950: '#000000',
  },
}
SCSS
$custom: #7f34b2;
$custom-light: #a972ca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f34b2",
  "rgb": {
    "r": 127,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 275.714,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49076,
    "c": 0.19248,
    "h": 308
  },
  "luminance": 0.10182
}

Semantic roles & 50–950 ramp

primary
#7F34B2
secondary
#9AC57D
accent
#DE4A86
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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