#7E1DC9#7E1DC9

#7E1DC9 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.8% C 0.236 H 303.4°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#7E1DC9
RGBrgb(126, 29, 201)
HSLhsl(274, 75%, 45%)
HSVhsv(274, 86%, 79%)
CMYKcmyk(37.3%, 85.6%, 0%, 21.2%)
CIE-LABlab(36.99, 66.92, -68.93)
CIE-LCHlch(36.99, 96.08, 314.15°)
OKLaboklab(48.79% 0.1299 -0.1969)
OKLCHoklch(48.79% 0.236 303.4)
XYZxyz(19.5837, 9.5314, 56.0550)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1DC9 #68C91D
analogous
#281DC9 #7E1DC9 #C91DBE
triadic
#7E1DC9 #C97E1D #1DC97E
tetradic
#7E1DC9 #C9281D #68C91D #1DBEC9
square
#7E1DC9 #C9281D #68C91D #1DBEC9
split-complementary
#7E1DC9 #BEC91D #1DC928
monochromatic
#3B0E5E #5C1594 #7E1DC9 #9C40E3 #B875EB

Accessibility & contrast

On white

7.23
#7E1DC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#7E1DC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1DC9
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1DC9#FFFFFF#000000##FFFFFF
##7E1DC91.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055CD
Deuteranopia (green-blind)
#0057C6
Tritanopia (blue-blind)
#6E5178
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7e1dc9;
/* rgb */ color: rgb(126, 29, 201);
/* oklch */ color: oklch(48.8% 0.236 303.4);
Tailwind
colors: {
  custom: {
    50: '#ab69db',
    500: '#7e1dc9',
    950: '#000000',
  },
}
SCSS
$custom: #7e1dc9;
$custom-light: #ab69db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1dc9",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 201
  },
  "hsl": {
    "h": 273.837,
    "s": 74.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48786,
    "c": 0.23586,
    "h": 303.4
  },
  "luminance": 0.09531
}

Semantic roles & 50–950 ramp

primary
#7E1DC9
secondary
#9BD270
accent
#F13688
background
#FBF6FD
surface
#F6ECFB
border
#D0C7D4
text
#110715
muted
#807A83

Preview Lab

Preview with #7E1DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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