#7D2FAC#7D2FAC

#7D2FAC is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.8% C 0.192 H 309.4°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#7D2FAC
RGBrgb(125, 47, 172)
HSLhsl(277, 57%, 43%)
HSVhsv(277, 73%, 67%)
CMYKcmyk(27.3%, 72.7%, 0%, 32.5%)
CIE-LABlab(36.69, 54.15, -52.32)
CIE-LCHlch(36.69, 75.30, 315.98°)
OKLaboklab(47.83% 0.1219 -0.1482)
OKLCHoklch(47.83% 0.192 309.4)
XYZxyz(16.9189, 9.3719, 39.9394)
Luminance0.0937 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2FAC #5EAC2F
analogous
#3E2FAC #7D2FAC #AC2F9C
triadic
#7D2FAC #AC7D2F #2FAC7D
tetradic
#7D2FAC #AC3E2F #5EAC2F #2F9CAC
square
#7D2FAC #AC3E2F #5EAC2F #2F9CAC
split-complementary
#7D2FAC #9CAC2F #2FAC3E
monochromatic
#37154C #5A227C #7D2FAC #9C4BCE #B77BDB

Accessibility & contrast

On white

7.31
#7D2FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7D2FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2FAC
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2FAC#FFFFFF#000000##FFFFFF
##7D2FAC1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B0
Deuteranopia (green-blind)
#1157A9
Tritanopia (blue-blind)
#764B6B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7d2fac;
/* rgb */ color: rgb(125, 47, 172);
/* oklch */ color: oklch(47.8% 0.192 309.4);
Tailwind
colors: {
  custom: {
    50: '#a76fc5',
    500: '#7d2fac',
    950: '#000000',
  },
}
SCSS
$custom: #7d2fac;
$custom-light: #a76fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2fac",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 277.44,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47831,
    "c": 0.1919,
    "h": 309.4
  },
  "luminance": 0.09372
}

Semantic roles & 50–950 ramp

primary
#7D2FAC
secondary
#92C374
accent
#E04781
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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