#7D2EC8#7D2EC8

#7D2EC8 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.221 H 302.0°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#7D2EC8
RGBrgb(125, 46, 200)
HSLhsl(271, 63%, 48%)
HSVhsv(271, 77%, 78%)
CMYKcmyk(37.5%, 77%, 0%, 21.6%)
CIE-LABlab(38.70, 60.92, -65.56)
CIE-LCHlch(38.70, 89.50, 312.90°)
OKLaboklab(49.92% 0.117 -0.1871)
OKLCHoklch(49.92% 0.221 302)
XYZxyz(19.8573, 10.4840, 55.6098)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EC8 #79C82E
analogous
#302EC8 #7D2EC8 #C82EC6
triadic
#7D2EC8 #C87D2E #2EC87D
tetradic
#7D2EC8 #C8302E #79C82E #2EC6C8
square
#7D2EC8 #C8302E #79C82E #2EC6C8
split-complementary
#7D2EC8 #C6C82E #2EC830
monochromatic
#3F1764 #5E2396 #7D2EC8 #9B5AD9 #B98CE5

Accessibility & contrast

On white

6.78
#7D2EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7D2EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D2EC8
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EC8#FFFFFF#000000##FFFFFF
##7D2EC81.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#6D577A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7d2ec8;
/* rgb */ color: rgb(125, 46, 200);
/* oklch */ color: oklch(49.9% 0.221 302.0);
Tailwind
colors: {
  custom: {
    50: '#a970da',
    500: '#7d2ec8',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ec8;
$custom-light: #a970da;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ec8",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 200
  },
  "hsl": {
    "h": 270.779,
    "s": 62.602,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49918,
    "c": 0.22071,
    "h": 302
  },
  "luminance": 0.10484
}

Semantic roles & 50–950 ramp

primary
#7D2EC8
secondary
#A8CF83
accent
#E64292
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7D2EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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