#7E2CA8#7E2CA8

#7E2CA8 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.192 H 311.4°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#7E2CA8
RGBrgb(126, 44, 168)
HSLhsl(280, 58%, 42%)
HSVhsv(280, 74%, 66%)
CMYKcmyk(25%, 73.8%, 0%, 34.1%)
CIE-LABlab(36.11, 54.72, -50.86)
CIE-LCHlch(36.11, 74.71, 317.09°)
OKLaboklab(47.36% 0.1268 -0.1439)
OKLCHoklch(47.36% 0.192 311.4)
XYZxyz(16.5714, 9.0646, 37.9149)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2CA8 #56A82C
analogous
#402CA8 #7E2CA8 #A82C94
triadic
#7E2CA8 #A87E2C #2CA87E
tetradic
#7E2CA8 #A8402C #56A82C #2C94A8
square
#7E2CA8 #A8402C #56A82C #2C94A8
split-complementary
#7E2CA8 #94A82C #2CA840
monochromatic
#351347 #5A1F78 #7E2CA8 #9F43CE #B874DB

Accessibility & contrast

On white

7.47
#7E2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7E2CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2CA8
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2CA8#FFFFFF#000000##FFFFFF
##7E2CA81.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#1856A5
Tritanopia (blue-blind)
#794868
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2ca8;
/* rgb */ color: rgb(126, 44, 168);
/* oklch */ color: oklch(47.4% 0.192 311.4);
Tailwind
colors: {
  custom: {
    50: '#a86dc3',
    500: '#7e2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ca8;
$custom-light: #a86dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ca8",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 279.677,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47357,
    "c": 0.19181,
    "h": 311.4
  },
  "luminance": 0.09064
}

Semantic roles & 50–950 ramp

primary
#7E2CA8
secondary
#8AC26E
accent
#E2467B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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