#7E4BA2#7E4BA2

#7E4BA2 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.0% C 0.141 H 309.3°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#7E4BA2
RGBrgb(126, 75, 162)
HSLhsl(275, 37%, 46%)
HSVhsv(275, 54%, 64%)
CMYKcmyk(22.2%, 53.7%, 0%, 36.5%)
CIE-LABlab(41.34, 38.06, -38.89)
CIE-LCHlch(41.34, 54.42, 314.38°)
OKLaboklab(51.02% 0.0893 -0.109)
OKLCHoklch(51.02% 0.141 309.3)
XYZxyz(17.6406, 12.0767, 35.5771)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4BA2 #6FA24B
analogous
#524BA2 #7E4BA2 #A24B9B
triadic
#7E4BA2 #A27E4B #4BA27E
tetradic
#7E4BA2 #A2524B #6FA24B #4B9BA2
square
#7E4BA2 #A2524B #6FA24B #4B9BA2
split-complementary
#7E4BA2 #9BA24B #4BA252
monochromatic
#3D244E #5D3878 #7E4BA2 #9C6EBC #B898CF

Accessibility & contrast

On white

6.15
#7E4BA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7E4BA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4BA2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4BA2#FFFFFF#000000##FFFFFF
##7E4BA21.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325FA5
Deuteranopia (green-blind)
#4262A0
Tritanopia (blue-blind)
#795A6F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e4ba2;
/* rgb */ color: rgb(126, 75, 162);
/* oklch */ color: oklch(51.0% 0.141 309.3);
Tailwind
colors: {
  custom: {
    50: '#a67fbe',
    500: '#7e4ba2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4ba2;
$custom-light: #a67fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4ba2",
  "rgb": {
    "r": 126,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 275.172,
    "s": 36.709,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51023,
    "c": 0.14093,
    "h": 309.3
  },
  "luminance": 0.12076
}

Semantic roles & 50–950 ramp

primary
#7E4BA2
secondary
#A0BC8D
accent
#CD5B8A
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#100A12
muted
#7F7C81

Preview Lab

Preview with #7E4BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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