#7E3CD8#7E3CD8

#7E3CD8 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.8% C 0.223 H 297.4°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7E3CD8
RGBrgb(126, 60, 216)
HSLhsl(265, 67%, 54%)
HSVhsv(265, 72%, 85%)
CMYKcmyk(41.7%, 72.2%, 0%, 15.3%)
CIE-LABlab(42.19, 58.98, -69.10)
CIE-LCHlch(42.19, 90.85, 310.48°)
OKLaboklab(52.8% 0.1026 -0.1976)
OKLCHoklch(52.8% 0.223 297.4)
XYZxyz(22.6115, 12.6248, 66.1979)
Luminance0.1263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3CD8 #96D83C
analogous
#3C48D8 #7E3CD8 #CC3CD8
triadic
#7E3CD8 #D87E3C #3CD87E
tetradic
#7E3CD8 #D83C48 #96D83C #3CD8CC
square
#7E3CD8 #D83C48 #96D83C #3CD8CC
split-complementary
#7E3CD8 #D8CC3C #48D83C
monochromatic
#451A80 #6024B3 #7E3CD8 #A06FE2 #C1A2EC

Accessibility & contrast

On white

5.96
#7E3CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7E3CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3CD8
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3CD8#FFFFFF#000000##FFFFFF
##7E3CD81.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DD
Deuteranopia (green-blind)
#0062D5
Tritanopia (blue-blind)
#676487
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e3cd8;
/* rgb */ color: rgb(126, 60, 216);
/* oklch */ color: oklch(52.8% 0.223 297.4);
Tailwind
colors: {
  custom: {
    50: '#ab78e5',
    500: '#7e3cd8',
    950: '#000000',
  },
}
SCSS
$custom: #7e3cd8;
$custom-light: #ab78e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3cd8",
  "rgb": {
    "r": 126,
    "g": 60,
    "b": 216
  },
  "hsl": {
    "h": 265.385,
    "s": 66.667,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52802,
    "c": 0.22264,
    "h": 297.4
  },
  "luminance": 0.12625
}

Semantic roles & 50–950 ramp

primary
#7E3CD8
secondary
#BDD997
accent
#EA3EA1
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7E3CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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