#7D2FA8#7D2FA8

#7D2FA8 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.5% C 0.188 H 310.7°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7D2FA8
RGBrgb(125, 47, 168)
HSLhsl(279, 56%, 42%)
HSVhsv(279, 72%, 66%)
CMYKcmyk(25.6%, 72%, 0%, 34.1%)
CIE-LABlab(36.41, 53.27, -50.39)
CIE-LCHlch(36.41, 73.33, 316.59°)
OKLaboklab(47.54% 0.1225 -0.1426)
OKLCHoklch(47.54% 0.188 310.7)
XYZxyz(16.5405, 9.2205, 37.9466)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2FA8 #5AA82F
analogous
#412FA8 #7D2FA8 #A82F96
triadic
#7D2FA8 #A87D2F #2FA87D
tetradic
#7D2FA8 #A8412F #5AA82F #2F96A8
square
#7D2FA8 #A8412F #5AA82F #2F96A8
split-complementary
#7D2FA8 #96A82F #2FA841
monochromatic
#361448 #592278 #7D2FA8 #9D48CC #B778D9

Accessibility & contrast

On white

7.38
#7D2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7D2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2FA8
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2FA8#FFFFFF#000000##FFFFFF
##7D2FA81.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#1A57A5
Tritanopia (blue-blind)
#774A68
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d2fa8;
/* rgb */ color: rgb(125, 47, 168);
/* oklch */ color: oklch(47.5% 0.188 310.7);
Tailwind
colors: {
  custom: {
    50: '#a76fc3',
    500: '#7d2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #7d2fa8;
$custom-light: #a76fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2fa8",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 278.678,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47538,
    "c": 0.18794,
    "h": 310.7
  },
  "luminance": 0.0922
}

Semantic roles & 50–950 ramp

primary
#7D2FA8
secondary
#8EC171
accent
#E0487E
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7D2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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