#7E34BD#7E34BD

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

Color values

HEX#7E34BD
RGBrgb(126, 52, 189)
HSLhsl(272, 57%, 47%)
HSVhsv(272, 72%, 74%)
CMYKcmyk(33.3%, 72.5%, 0%, 25.9%)
CIE-LABlab(38.84, 56.06, -58.89)
CIE-LCHlch(38.84, 81.31, 313.59°)
OKLaboklab(49.78% 0.1154 -0.1676)
OKLCHoklch(49.78% 0.203 304.6)
XYZxyz(19.0154, 10.5658, 49.1719)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E34BD #73BD34
analogous
#3A34BD #7E34BD #BD34B7
triadic
#7E34BD #BD7E34 #34BD7E
tetradic
#7E34BD #BD3A34 #73BD34 #34B7BD
square
#7E34BD #BD3A34 #73BD34 #34B7BD
split-complementary
#7E34BD #B7BD34 #34BD3A
monochromatic
#3E1A5D #5E278D #7E34BD #9C5CD2 #B98CDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E34BD#FFFFFF#000000##FFFFFF
##7E34BD1.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)
#005AC1
Deuteranopia (green-blind)
#005BBA
Tritanopia (blue-blind)
#725575
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e34bd;
/* rgb */ color: rgb(126, 52, 189);
/* oklch */ color: oklch(49.8% 0.203 304.6);
Tailwind
colors: {
  custom: {
    50: '#a972d2',
    500: '#7e34bd',
    950: '#000000',
  },
}
SCSS
$custom: #7e34bd;
$custom-light: #a972d2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e34bd",
  "rgb": {
    "r": 126,
    "g": 52,
    "b": 189
  },
  "hsl": {
    "h": 272.409,
    "s": 56.846,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49777,
    "c": 0.20347,
    "h": 304.6
  },
  "luminance": 0.10566
}

Semantic roles & 50–950 ramp

primary
#7E34BD
secondary
#A4CA83
accent
#E0488E
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7E34BD

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

Preview Lab → · Contrast checker → · Palette generator →

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