#7F2DA5#7F2DA5

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

Color values

HEX#7F2DA5
RGBrgb(127, 45, 165)
HSLhsl(281, 57%, 41%)
HSVhsv(281, 73%, 65%)
CMYKcmyk(23%, 72.7%, 0%, 35.3%)
CIE-LABlab(36.19, 53.87, -48.93)
CIE-LCHlch(36.19, 72.78, 317.75°)
OKLaboklab(47.38% 0.1276 -0.1382)
OKLCHoklch(47.38% 0.188 312.7)
XYZxyz(16.4811, 9.1059, 36.4794)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DA5 #53A52D
analogous
#432DA5 #7F2DA5 #A52D8F
triadic
#7F2DA5 #A57F2D #2DA57F
tetradic
#7F2DA5 #A5432D #53A52D #2D8FA5
square
#7F2DA5 #A5432D #53A52D #2D8FA5
split-complementary
#7F2DA5 #8FA52D #2DA543
monochromatic
#351345 #5A2075 #7F2DA5 #A143CC #B973D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F2DA5#FFFFFF#000000##FFFFFF
##7F2DA51.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)
#0051A8
Deuteranopia (green-blind)
#2057A2
Tritanopia (blue-blind)
#7B4766
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2da5;
/* rgb */ color: rgb(127, 45, 165);
/* oklch */ color: oklch(47.4% 0.188 312.7);
Tailwind
colors: {
  custom: {
    50: '#a86ec0',
    500: '#7f2da5',
    950: '#000000',
  },
}
SCSS
$custom: #7f2da5;
$custom-light: #a86ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2da5",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 281,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47377,
    "c": 0.18806,
    "h": 312.7
  },
  "luminance": 0.09105
}

Semantic roles & 50–950 ramp

primary
#7F2DA5
secondary
#88C16D
accent
#E04778
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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