#7D2CA7#7D2CA7

#7D2CA7 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.2% C 0.191 H 311.3°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#7D2CA7
RGBrgb(125, 44, 167)
HSLhsl(280, 58%, 41%)
HSVhsv(280, 74%, 65%)
CMYKcmyk(25.1%, 73.7%, 0%, 34.5%)
CIE-LABlab(35.89, 54.30, -50.62)
CIE-LCHlch(35.89, 74.24, 317.01°)
OKLaboklab(47.15% 0.1256 -0.1432)
OKLCHoklch(47.15% 0.191 311.3)
XYZxyz(16.3319, 8.9518, 37.4193)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2CA7 #56A72C
analogous
#402CA7 #7D2CA7 #A72C94
triadic
#7D2CA7 #A77D2C #2CA77D
tetradic
#7D2CA7 #A7402C #56A72C #2C94A7
square
#7D2CA7 #A7402C #56A72C #2C94A7
split-complementary
#7D2CA7 #94A72C #2CA740
monochromatic
#341246 #591F77 #7D2CA7 #9E43CD #B773DA

Accessibility & contrast

On white

7.53
#7D2CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7D2CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2CA7
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2CA7#FFFFFF#000000##FFFFFF
##7D2CA71.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#1856A4
Tritanopia (blue-blind)
#784867
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7d2ca7;
/* rgb */ color: rgb(125, 44, 167);
/* oklch */ color: oklch(47.2% 0.191 311.3);
Tailwind
colors: {
  custom: {
    50: '#a76dc2',
    500: '#7d2ca7',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ca7;
$custom-light: #a76dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ca7",
  "rgb": {
    "r": 125,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 279.512,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47151,
    "c": 0.19052,
    "h": 311.3
  },
  "luminance": 0.08951
}

Semantic roles & 50–950 ramp

primary
#7D2CA7
secondary
#8AC26D
accent
#E2467B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D2CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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