#7F2CA3#7F2CA3

#7F2CA3 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.187 H 313.4°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7F2CA3
RGBrgb(127, 44, 163)
HSLhsl(282, 57%, 41%)
HSVhsv(282, 73%, 64%)
CMYKcmyk(22.1%, 73%, 0%, 36.1%)
CIE-LABlab(35.90, 53.86, -48.18)
CIE-LCHlch(35.90, 72.27, 318.18°)
OKLaboklab(47.13% 0.1288 -0.136)
OKLCHoklch(47.13% 0.187 313.4)
XYZxyz(16.2628, 8.9582, 35.5157)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CA3 #50A32C
analogous
#442CA3 #7F2CA3 #A32C8B
triadic
#7F2CA3 #A37F2C #2CA37F
tetradic
#7F2CA3 #A3442C #50A32C #2C8BA3
square
#7F2CA3 #A3442C #50A32C #2C8BA3
split-complementary
#7F2CA3 #8BA32C #2CA344
monochromatic
#341243 #591F73 #7F2CA3 #A241CC #B971D9

Accessibility & contrast

On white

7.52
#7F2CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7F2CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2CA3
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CA3#FFFFFF#000000##FFFFFF
##7F2CA31.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#2256A0
Tritanopia (blue-blind)
#7B4665
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2ca3;
/* rgb */ color: rgb(127, 44, 163);
/* oklch */ color: oklch(47.1% 0.187 313.4);
Tailwind
colors: {
  custom: {
    50: '#a86dbf',
    500: '#7f2ca3',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ca3;
$custom-light: #a86dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ca3",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 281.849,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47131,
    "c": 0.18734,
    "h": 313.4
  },
  "luminance": 0.08958
}

Semantic roles & 50–950 ramp

primary
#7F2CA3
secondary
#85C06B
accent
#E14776
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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