#7D2EA7#7D2EA7

#7D2EA7 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 47.4% C 0.188 H 311.1°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#7D2EA7
RGBrgb(125, 46, 167)
HSLhsl(279, 57%, 42%)
HSVhsv(279, 72%, 65%)
CMYKcmyk(25.1%, 72.5%, 0%, 34.5%)
CIE-LABlab(36.18, 53.47, -50.15)
CIE-LCHlch(36.18, 73.31, 316.84°)
OKLaboklab(47.36% 0.1236 -0.1419)
OKLCHoklch(47.36% 0.188 311.1)
XYZxyz(16.4082, 9.1044, 37.4447)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EA7 #58A72E
analogous
#412EA7 #7D2EA7 #A72E95
triadic
#7D2EA7 #A77D2E #2EA77D
tetradic
#7D2EA7 #A7412E #58A72E #2E95A7
square
#7D2EA7 #A7412E #58A72E #2E95A7
split-complementary
#7D2EA7 #95A72E #2EA741
monochromatic
#351447 #592177 #7D2EA7 #9E46CC #B776D9

Accessibility & contrast

On white

7.44
#7D2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#7D2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2EA7
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EA7#FFFFFF#000000##FFFFFF
##7D2EA71.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#1B56A4
Tritanopia (blue-blind)
#784968
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7d2ea7;
/* rgb */ color: rgb(125, 46, 167);
/* oklch */ color: oklch(47.4% 0.188 311.1);
Tailwind
colors: {
  custom: {
    50: '#a76ec2',
    500: '#7d2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ea7;
$custom-light: #a76ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ea7",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 279.174,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47359,
    "c": 0.18816,
    "h": 311.1
  },
  "luminance": 0.09104
}

Semantic roles & 50–950 ramp

primary
#7D2EA7
secondary
#8CC170
accent
#E0487D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7D2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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