#7E4FB2#7E4FB2

#7E4FB2 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.6% C 0.154 H 303.5°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#7E4FB2
RGBrgb(126, 79, 178)
HSLhsl(268, 39%, 50%)
HSVhsv(268, 56%, 70%)
CMYKcmyk(29.2%, 55.6%, 0%, 30.2%)
CIE-LABlab(43.13, 39.71, -45.52)
CIE-LCHlch(43.13, 60.41, 311.10°)
OKLaboklab(52.64% 0.0848 -0.1284)
OKLCHoklch(52.64% 0.154 303.5)
XYZxyz(19.4343, 13.2420, 43.6430)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FB2 #83B24F
analogous
#4F51B2 #7E4FB2 #AF4FB2
triadic
#7E4FB2 #B27E4F #4FB27E
tetradic
#7E4FB2 #B24F51 #83B24F #4FB2AF
square
#7E4FB2 #B24F51 #83B24F #4FB2AF
split-complementary
#7E4FB2 #B2AF4F #51B24F
monochromatic
#42295E #603C88 #7E4FB2 #9D7AC5 #BCA4D7

Accessibility & contrast

On white

5.76
#7E4FB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#7E4FB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FB2
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FB2#FFFFFF#000000##FFFFFF
##7E4FB21.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A65B5
Deuteranopia (green-blind)
#3A66B0
Tritanopia (blue-blind)
#756279
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e4fb2;
/* rgb */ color: rgb(126, 79, 178);
/* oklch */ color: oklch(52.6% 0.154 303.5);
Tailwind
colors: {
  custom: {
    50: '#a682c9',
    500: '#7e4fb2',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fb2;
$custom-light: #a682c9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fb2",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 268.485,
    "s": 39.13,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52641,
    "c": 0.15389,
    "h": 303.5
  },
  "luminance": 0.13242
}

Semantic roles & 50–950 ramp

primary
#7E4FB2
secondary
#B0C498
accent
#CF5997
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7E4FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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