#7D2EA6#7D2EA6

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

Color values

HEX#7D2EA6
RGBrgb(125, 46, 166)
HSLhsl(280, 57%, 42%)
HSVhsv(280, 72%, 65%)
CMYKcmyk(24.7%, 72.3%, 0%, 34.9%)
CIE-LABlab(36.11, 53.25, -49.66)
CIE-LCHlch(36.11, 72.82, 317.00°)
OKLaboklab(47.29% 0.1238 -0.1404)
OKLCHoklch(47.29% 0.187 311.4)
XYZxyz(16.3161, 9.0675, 36.9597)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EA6 #57A62E
analogous
#412EA6 #7D2EA6 #A62E93
triadic
#7D2EA6 #A67D2E #2EA67D
tetradic
#7D2EA6 #A6412E #57A62E #2E93A6
square
#7D2EA6 #A6412E #57A62E #2E93A6
split-complementary
#7D2EA6 #93A62E #2EA641
monochromatic
#351346 #592176 #7D2EA6 #9E46CC #B776D9

Accessibility & contrast

On white

7.46
#7D2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D2EA6
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EA6#FFFFFF#000000##FFFFFF
##7D2EA61.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#1C56A3
Tritanopia (blue-blind)
#784867
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d2ea6;
/* rgb */ color: rgb(125, 46, 166);
/* oklch */ color: oklch(47.3% 0.187 311.4);
Tailwind
colors: {
  custom: {
    50: '#a76ec1',
    500: '#7d2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ea6;
$custom-light: #a76ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ea6",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 279.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47286,
    "c": 0.18718,
    "h": 311.4
  },
  "luminance": 0.09067
}

Semantic roles & 50–950 ramp

primary
#7D2EA6
secondary
#8BC16F
accent
#E0487C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7D2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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