#7F2CA4#7F2CA4

#7F2CA4 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.2% C 0.188 H 313.1°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#7F2CA4
RGBrgb(127, 44, 164)
HSLhsl(282, 58%, 41%)
HSVhsv(282, 73%, 64%)
CMYKcmyk(22.6%, 73.2%, 0%, 35.7%)
CIE-LABlab(35.97, 54.07, -48.67)
CIE-LCHlch(35.97, 72.75, 318.01°)
OKLaboklab(47.2% 0.1287 -0.1374)
OKLCHoklch(47.2% 0.188 313.1)
XYZxyz(16.3527, 8.9942, 35.9894)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CA4 #51A42C
analogous
#432CA4 #7F2CA4 #A42C8D
triadic
#7F2CA4 #A47F2C #2CA47F
tetradic
#7F2CA4 #A4432C #51A42C #2C8DA4
square
#7F2CA4 #A4432C #51A42C #2C8DA4
split-complementary
#7F2CA4 #8DA42C #2CA443
monochromatic
#341243 #5A1F74 #7F2CA4 #A141CC #B971D9

Accessibility & contrast

On white

7.50
#7F2CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#7F2CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2CA4
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CA4#FFFFFF#000000##FFFFFF
##7F2CA41.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#2156A1
Tritanopia (blue-blind)
#7B4665
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2ca4;
/* rgb */ color: rgb(127, 44, 164);
/* oklch */ color: oklch(47.2% 0.188 313.1);
Tailwind
colors: {
  custom: {
    50: '#a86dc0',
    500: '#7f2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ca4;
$custom-light: #a86dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ca4",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 281.5,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47202,
    "c": 0.18829,
    "h": 313.1
  },
  "luminance": 0.08994
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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