#7F2DA7#7F2DA7

#7F2DA7 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.5% C 0.190 H 312.1°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#7F2DA7
RGBrgb(127, 45, 167)
HSLhsl(280, 58%, 42%)
HSVhsv(280, 73%, 65%)
CMYKcmyk(24%, 73.1%, 0%, 34.5%)
CIE-LABlab(36.33, 54.30, -49.90)
CIE-LCHlch(36.33, 73.75, 317.42°)
OKLaboklab(47.52% 0.1273 -0.1411)
OKLCHoklch(47.52% 0.19 312.1)
XYZxyz(16.6646, 9.1793, 37.4456)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DA7 #55A72D
analogous
#422DA7 #7F2DA7 #A72D92
triadic
#7F2DA7 #A77F2D #2DA77F
tetradic
#7F2DA7 #A7422D #55A72D #2D92A7
square
#7F2DA7 #A7422D #55A72D #2D92A7
split-complementary
#7F2DA7 #92A72D #2DA742
monochromatic
#361347 #5A2077 #7F2DA7 #A044CD #B975DA

Accessibility & contrast

On white

7.41
#7F2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2DA7
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DA7#FFFFFF#000000##FFFFFF
##7F2DA71.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#1D57A4
Tritanopia (blue-blind)
#7A4867
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2da7;
/* rgb */ color: rgb(127, 45, 167);
/* oklch */ color: oklch(47.5% 0.190 312.1);
Tailwind
colors: {
  custom: {
    50: '#a86ec2',
    500: '#7f2da7',
    950: '#000000',
  },
}
SCSS
$custom: #7f2da7;
$custom-light: #a86ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2da7",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 280.328,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4752,
    "c": 0.19,
    "h": 312.1
  },
  "luminance": 0.09179
}

Semantic roles & 50–950 ramp

primary
#7F2DA7
secondary
#8AC16E
accent
#E14779
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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