#7D2FB4#7D2FB4

#7D2FB4 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.4% C 0.200 H 307.1°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7D2FB4
RGBrgb(125, 47, 180)
HSLhsl(275, 59%, 45%)
HSVhsv(275, 74%, 71%)
CMYKcmyk(30.6%, 73.9%, 0%, 29.4%)
CIE-LABlab(37.28, 55.94, -56.13)
CIE-LCHlch(37.28, 79.24, 314.90°)
OKLaboklab(48.43% 0.1205 -0.1594)
OKLCHoklch(48.43% 0.2 307.1)
XYZxyz(17.7104, 9.6885, 44.1082)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2FB4 #66B42F
analogous
#3B2FB4 #7D2FB4 #B42FA9
triadic
#7D2FB4 #B47D2F #2FB47D
tetradic
#7D2FB4 #B43B2F #66B42F #2FA9B4
square
#7D2FB4 #B43B2F #66B42F #2FA9B4
split-complementary
#7D2FB4 #A9B42F #2FB43B
monochromatic
#3A1653 #5B2283 #7D2FB4 #9B4FD1 #B780DE

Accessibility & contrast

On white

7.15
#7D2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7D2FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2FB4
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2FB4#FFFFFF#000000##FFFFFF
##7D2FB41.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B8
Deuteranopia (green-blind)
#0058B1
Tritanopia (blue-blind)
#744F6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7d2fb4;
/* rgb */ color: rgb(125, 47, 180);
/* oklch */ color: oklch(48.4% 0.200 307.1);
Tailwind
colors: {
  custom: {
    50: '#a86fcb',
    500: '#7d2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #7d2fb4;
$custom-light: #a86fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2fb4",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 275.188,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48432,
    "c": 0.19985,
    "h": 307.1
  },
  "luminance": 0.09688
}

Semantic roles & 50–950 ramp

primary
#7D2FB4
secondary
#99C778
accent
#E24686
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7D2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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