#7E4FC8#7E4FC8

#7E4FC8 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.1% C 0.181 H 298.0°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7E4FC8
RGBrgb(126, 79, 200)
HSLhsl(263, 52%, 55%)
HSVhsv(263, 61%, 78%)
CMYKcmyk(37%, 60.5%, 0%, 21.6%)
CIE-LABlab(44.51, 45.33, -56.12)
CIE-LCHlch(44.51, 72.14, 308.93°)
OKLaboklab(54.1% 0.0848 -0.1595)
OKLCHoklch(54.1% 0.181 298)
XYZxyz(21.8229, 14.1974, 56.2230)
Luminance0.1420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E4FC8 #99C84F
analogous
#4F5CC8 #7E4FC8 #BB4FC8
triadic
#7E4FC8 #C87E4F #4FC87E
tetradic
#7E4FC8 #C84F5C #99C84F #4FC8BB
square
#7E4FC8 #C84F5C #99C84F #4FC8BB
split-complementary
#7E4FC8 #C8BB4F #5CC84F
monochromatic
#452577 #6034A6 #7E4FC8 #A07ED7 #C2ACE5

Accessibility & contrast

On white

5.47
#7E4FC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#7E4FC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E4FC8
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E4FC8#FFFFFF#000000##FFFFFF
##7E4FC81.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CC
Deuteranopia (green-blind)
#1D68C5
Tritanopia (blue-blind)
#6D6984
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #7e4fc8;
/* rgb */ color: rgb(126, 79, 200);
/* oklch */ color: oklch(54.1% 0.181 298.0);
Tailwind
colors: {
  custom: {
    50: '#a882d9',
    500: '#7e4fc8',
    950: '#000000',
  },
}
SCSS
$custom: #7e4fc8;
$custom-light: #a882d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e4fc8",
  "rgb": {
    "r": 126,
    "g": 79,
    "b": 200
  },
  "hsl": {
    "h": 263.306,
    "s": 52.381,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54104,
    "c": 0.18063,
    "h": 298
  },
  "luminance": 0.14198
}

Semantic roles & 50–950 ramp

primary
#7E4FC8
secondary
#BFD3A0
accent
#DC4CA4
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E4FC8

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

Preview Lab → · Contrast checker → · Palette generator →

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