#7E3ECC#7E3ECC

#7E3ECC is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.1% C 0.207 H 299.7°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7E3ECC
RGBrgb(126, 62, 204)
HSLhsl(267, 58%, 52%)
HSVhsv(267, 70%, 80%)
CMYKcmyk(38.2%, 69.6%, 0%, 20%)
CIE-LABlab(41.60, 55.08, -63.16)
CIE-LCHlch(41.60, 83.80, 311.09°)
OKLaboklab(52.09% 0.103 -0.1801)
OKLCHoklch(52.09% 0.207 299.7)
XYZxyz(21.2232, 12.2403, 58.3595)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E3ECC #8CCC3E
analogous
#3E45CC #7E3ECC #C53ECC
triadic
#7E3ECC #CC7E3E #3ECC7E
tetradic
#7E3ECC #CC3E45 #8CCC3E #3ECCC5
square
#7E3ECC #CC3E45 #8CCC3E #3ECCC5
split-complementary
#7E3ECC #CCC53E #45CC3E
monochromatic
#441E72 #612BA2 #7E3ECC #9E6ED9 #BF9FE6

Accessibility & contrast

On white

6.09
#7E3ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7E3ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E3ECC
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E3ECC#FFFFFF#000000##FFFFFF
##7E3ECC1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#6C6081
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e3ecc;
/* rgb */ color: rgb(126, 62, 204);
/* oklch */ color: oklch(52.1% 0.207 299.7);
Tailwind
colors: {
  custom: {
    50: '#a978dc',
    500: '#7e3ecc',
    950: '#000000',
  },
}
SCSS
$custom: #7e3ecc;
$custom-light: #a978dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e3ecc",
  "rgb": {
    "r": 126,
    "g": 62,
    "b": 204
  },
  "hsl": {
    "h": 267.042,
    "s": 58.197,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52089,
    "c": 0.20749,
    "h": 299.7
  },
  "luminance": 0.12241
}

Semantic roles & 50–950 ramp

primary
#7E3ECC
secondary
#B6D294
accent
#E1469C
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E3ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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