#7D2EC2#7D2EC2

#7D2EC2 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.4% C 0.215 H 303.5°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7D2EC2
RGBrgb(125, 46, 194)
HSLhsl(272, 62%, 47%)
HSVhsv(272, 76%, 76%)
CMYKcmyk(35.6%, 76.3%, 0%, 23.9%)
CIE-LABlab(38.21, 59.54, -62.85)
CIE-LCHlch(38.21, 86.57, 313.45°)
OKLaboklab(49.43% 0.1185 -0.1792)
OKLCHoklch(49.43% 0.215 303.5)
XYZxyz(19.1698, 10.2090, 51.9891)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EC2 #73C22E
analogous
#332EC2 #7D2EC2 #C22EBD
triadic
#7D2EC2 #C27D2E #2EC27D
tetradic
#7D2EC2 #C2332E #73C22E #2EBDC2
square
#7D2EC2 #C2332E #73C22E #2EBDC2
split-complementary
#7D2EC2 #BDC22E #2EC233
monochromatic
#3D175F #5D2291 #7D2EC2 #9B56D7 #B888E3

Accessibility & contrast

On white

6.90
#7D2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7D2EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D2EC2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EC2#FFFFFF#000000##FFFFFF
##7D2EC21.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#005ABF
Tritanopia (blue-blind)
#6F5477
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7d2ec2;
/* rgb */ color: rgb(125, 46, 194);
/* oklch */ color: oklch(49.4% 0.215 303.5);
Tailwind
colors: {
  custom: {
    50: '#a96fd5',
    500: '#7d2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ec2;
$custom-light: #a96fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ec2",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 272.027,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4943,
    "c": 0.21479,
    "h": 303.5
  },
  "luminance": 0.10209
}

Semantic roles & 50–950 ramp

primary
#7D2EC2
secondary
#A3CC7F
accent
#E5438E
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7D2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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