#7E2CC0#7E2CC0

#7E2CC0 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.2% C 0.215 H 304.6°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#7E2CC0
RGBrgb(126, 44, 192)
HSLhsl(273, 63%, 46%)
HSVhsv(273, 77%, 75%)
CMYKcmyk(34.4%, 77.1%, 0%, 24.7%)
CIE-LABlab(37.92, 60.03, -62.15)
CIE-LCHlch(37.92, 86.41, 314.01°)
OKLaboklab(49.2% 0.122 -0.1771)
OKLCHoklch(49.2% 0.215 304.6)
XYZxyz(19.0171, 10.0428, 50.7956)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2CC0 #6EC02C
analogous
#342CC0 #7E2CC0 #C02CB8
triadic
#7E2CC0 #C07E2C #2CC07E
tetradic
#7E2CC0 #C0342C #6EC02C #2CB8C0
square
#7E2CC0 #C0342C #6EC02C #2CB8C0
split-complementary
#7E2CC0 #B8C02C #2CC034
monochromatic
#3D155C #5D218E #7E2CC0 #9C52D7 #B884E3

Accessibility & contrast

On white

6.98
#7E2CC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7E2CC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2CC0
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2CC0#FFFFFF#000000##FFFFFF
##7E2CC01.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#0059BD
Tritanopia (blue-blind)
#715275
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e2cc0;
/* rgb */ color: rgb(126, 44, 192);
/* oklch */ color: oklch(49.2% 0.215 304.6);
Tailwind
colors: {
  custom: {
    50: '#a96ed4',
    500: '#7e2cc0',
    950: '#000000',
  },
}
SCSS
$custom: #7e2cc0;
$custom-light: #a96ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2cc0",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 192
  },
  "hsl": {
    "h": 273.243,
    "s": 62.712,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49201,
    "c": 0.21505,
    "h": 304.6
  },
  "luminance": 0.10043
}

Semantic roles & 50–950 ramp

primary
#7E2CC0
secondary
#A0CC7C
accent
#E6428B
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7E2CC0

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

Preview Lab → · Contrast checker → · Palette generator →

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