#7F2CA5#7F2CA5

#7F2CA5 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.3% C 0.189 H 312.8°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#7F2CA5
RGBrgb(127, 44, 165)
HSLhsl(281, 58%, 41%)
HSVhsv(281, 73%, 65%)
CMYKcmyk(23%, 73.3%, 0%, 35.3%)
CIE-LABlab(36.04, 54.28, -49.16)
CIE-LCHlch(36.04, 73.24, 317.83°)
OKLaboklab(47.27% 0.1286 -0.1389)
OKLCHoklch(47.27% 0.189 312.8)
XYZxyz(16.4434, 9.0305, 36.4669)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CA5 #52A52C
analogous
#422CA5 #7F2CA5 #A52C8E
triadic
#7F2CA5 #A57F2C #2CA57F
tetradic
#7F2CA5 #A5422C #52A52C #2C8EA5
square
#7F2CA5 #A5422C #52A52C #2C8EA5
split-complementary
#7F2CA5 #8EA52C #2CA542
monochromatic
#351244 #5A1F75 #7F2CA5 #A142CD #B972D9

Accessibility & contrast

On white

7.48
#7F2CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7F2CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2CA5
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CA5#FFFFFF#000000##FFFFFF
##7F2CA51.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#1F57A2
Tritanopia (blue-blind)
#7B4766
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2ca5;
/* rgb */ color: rgb(127, 44, 165);
/* oklch */ color: oklch(47.3% 0.189 312.8);
Tailwind
colors: {
  custom: {
    50: '#a86dc0',
    500: '#7f2ca5',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ca5;
$custom-light: #a86dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ca5",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 281.157,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47274,
    "c": 0.18926,
    "h": 312.8
  },
  "luminance": 0.0903
}

Semantic roles & 50–950 ramp

primary
#7F2CA5
secondary
#87C16C
accent
#E14777
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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