#7F2CA2#7F2CA2

#7F2CA2 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.186 H 313.8°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7F2CA2
RGBrgb(127, 44, 162)
HSLhsl(282, 57%, 40%)
HSVhsv(282, 73%, 64%)
CMYKcmyk(21.6%, 72.8%, 0%, 36.5%)
CIE-LABlab(35.83, 53.65, -47.69)
CIE-LCHlch(35.83, 71.78, 318.36°)
OKLaboklab(47.06% 0.129 -0.1346)
OKLCHoklch(47.06% 0.186 313.8)
XYZxyz(16.1735, 8.9225, 35.0457)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CA2 #4FA22C
analogous
#442CA2 #7F2CA2 #A22C8A
triadic
#7F2CA2 #A27F2C #2CA27F
tetradic
#7F2CA2 #A2442C #4FA22C #2C8AA2
square
#7F2CA2 #A2442C #4FA22C #2C8AA2
split-complementary
#7F2CA2 #8AA22C #2CA244
monochromatic
#341242 #591F72 #7F2CA2 #A240CB #B970D8

Accessibility & contrast

On white

7.54
#7F2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F2CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2CA2
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CA2#FFFFFF#000000##FFFFFF
##7F2CA21.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#24569F
Tritanopia (blue-blind)
#7C4564
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2ca2;
/* rgb */ color: rgb(127, 44, 162);
/* oklch */ color: oklch(47.1% 0.186 313.8);
Tailwind
colors: {
  custom: {
    50: '#a86dbe',
    500: '#7f2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ca2;
$custom-light: #a86dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ca2",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 282.203,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4706,
    "c": 0.18638,
    "h": 313.8
  },
  "luminance": 0.08922
}

Semantic roles & 50–950 ramp

primary
#7F2CA2
secondary
#84BF6A
accent
#E14775
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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