#7D2CA8#7D2CA8

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

Color values

HEX#7D2CA8
RGBrgb(125, 44, 168)
HSLhsl(279, 58%, 42%)
HSVhsv(279, 74%, 66%)
CMYKcmyk(25.6%, 73.8%, 0%, 34.1%)
CIE-LABlab(35.96, 54.52, -51.11)
CIE-LCHlch(35.96, 74.73, 316.85°)
OKLaboklab(47.22% 0.1255 -0.1447)
OKLCHoklch(47.22% 0.191 310.9)
XYZxyz(16.4247, 8.9889, 37.9080)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2CA8 #57A82C
analogous
#3F2CA8 #7D2CA8 #A82C95
triadic
#7D2CA8 #A87D2C #2CA87D
tetradic
#7D2CA8 #A83F2C #57A82C #2C95A8
square
#7D2CA8 #A83F2C #57A82C #2C95A8
split-complementary
#7D2CA8 #95A82C #2CA83F
monochromatic
#351347 #591F78 #7D2CA8 #9E43CE #B774DB

Accessibility & contrast

On white

7.51
#7D2CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7D2CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2CA8
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2CA8#FFFFFF#000000##FFFFFF
##7D2CA81.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#1556A5
Tritanopia (blue-blind)
#774868
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d2ca8;
/* rgb */ color: rgb(125, 44, 168);
/* oklch */ color: oklch(47.2% 0.191 310.9);
Tailwind
colors: {
  custom: {
    50: '#a76dc3',
    500: '#7d2ca8',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ca8;
$custom-light: #a76dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ca8",
  "rgb": {
    "r": 125,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 279.194,
    "s": 58.491,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47224,
    "c": 0.19149,
    "h": 310.9
  },
  "luminance": 0.08988
}

Semantic roles & 50–950 ramp

primary
#7D2CA8
secondary
#8BC26E
accent
#E2467C
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D2CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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