#7F2DA8#7F2DA8

#7F2DA8 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.6% C 0.191 H 311.7°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#7F2DA8
RGBrgb(127, 45, 168)
HSLhsl(280, 58%, 42%)
HSVhsv(280, 73%, 66%)
CMYKcmyk(24.4%, 73.2%, 0%, 34.1%)
CIE-LABlab(36.40, 54.51, -50.39)
CIE-LCHlch(36.40, 74.24, 317.25°)
OKLaboklab(47.59% 0.1271 -0.1425)
OKLCHoklch(47.59% 0.191 311.7)
XYZxyz(16.7574, 9.2164, 37.9344)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2DA8 #56A82D
analogous
#422DA8 #7F2DA8 #A82D94
triadic
#7F2DA8 #A87F2D #2DA87F
tetradic
#7F2DA8 #A8422D #56A82D #2D94A8
square
#7F2DA8 #A8422D #56A82D #2D94A8
split-complementary
#7F2DA8 #94A82D #2DA842
monochromatic
#361347 #5B2078 #7F2DA8 #A045CD #B975DA

Accessibility & contrast

On white

7.39
#7F2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2DA8
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2DA8#FFFFFF#000000##FFFFFF
##7F2DA81.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AB
Deuteranopia (green-blind)
#1B57A5
Tritanopia (blue-blind)
#7A4868
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7f2da8;
/* rgb */ color: rgb(127, 45, 168);
/* oklch */ color: oklch(47.6% 0.191 311.7);
Tailwind
colors: {
  custom: {
    50: '#a86ec3',
    500: '#7f2da8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2da8;
$custom-light: #a86ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2da8",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 280,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47593,
    "c": 0.19097,
    "h": 311.7
  },
  "luminance": 0.09216
}

Semantic roles & 50–950 ramp

primary
#7F2DA8
secondary
#8BC26F
accent
#E1477A
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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