#7F2CA6#7F2CA6

#7F2CA6 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.3% C 0.190 H 312.5°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#7F2CA6
RGBrgb(127, 44, 166)
HSLhsl(281, 58%, 41%)
HSVhsv(281, 73%, 65%)
CMYKcmyk(23.5%, 73.5%, 0%, 34.9%)
CIE-LABlab(36.11, 54.49, -49.65)
CIE-LCHlch(36.11, 73.72, 317.66°)
OKLaboklab(47.35% 0.1284 -0.1403)
OKLCHoklch(47.35% 0.19 312.5)
XYZxyz(16.5348, 9.0670, 36.9481)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CA6 #53A62C
analogous
#422CA6 #7F2CA6 #A62C90
triadic
#7F2CA6 #A67F2C #2CA67F
tetradic
#7F2CA6 #A6422C #53A62C #2C90A6
square
#7F2CA6 #A6422C #53A62C #2C90A6
split-complementary
#7F2CA6 #90A62C #2CA642
monochromatic
#351245 #5A1F76 #7F2CA6 #A142CD #B973DA

Accessibility & contrast

On white

7.46
#7F2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2CA6
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CA6#FFFFFF#000000##FFFFFF
##7F2CA61.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#1E57A3
Tritanopia (blue-blind)
#7B4767
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7f2ca6;
/* rgb */ color: rgb(127, 44, 166);
/* oklch */ color: oklch(47.3% 0.190 312.5);
Tailwind
colors: {
  custom: {
    50: '#a86dc1',
    500: '#7f2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ca6;
$custom-light: #a86dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ca6",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 280.82,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47346,
    "c": 0.19021,
    "h": 312.5
  },
  "luminance": 0.09067
}

Semantic roles & 50–950 ramp

primary
#7F2CA6
secondary
#88C16D
accent
#E14678
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7F2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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