#7F2CA0#7F2CA0

#7F2CA0 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.184 H 314.5°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7F2CA0
RGBrgb(127, 44, 160)
HSLhsl(283, 57%, 40%)
HSVhsv(283, 73%, 63%)
CMYKcmyk(20.6%, 72.5%, 0%, 37.3%)
CIE-LABlab(35.70, 53.23, -46.71)
CIE-LCHlch(35.70, 70.81, 318.73°)
OKLaboklab(46.92% 0.1292 -0.1317)
OKLCHoklch(46.92% 0.184 314.5)
XYZxyz(15.9972, 8.8520, 34.1168)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2CA0 #4DA02C
analogous
#452CA0 #7F2CA0 #A02C87
triadic
#7F2CA0 #A07F2C #2CA07F
tetradic
#7F2CA0 #A0452C #4DA02C #2C87A0
square
#7F2CA0 #A0452C #4DA02C #2C87A0
split-complementary
#7F2CA0 #87A02C #2CA045
monochromatic
#331240 #591F70 #7F2CA0 #A33FCA #BA6FD7

Accessibility & contrast

On white

7.58
#7F2CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7F2CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2CA0
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2CA0#FFFFFF#000000##FFFFFF
##7F2CA01.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA3
Deuteranopia (green-blind)
#26569D
Tritanopia (blue-blind)
#7C4563
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2ca0;
/* rgb */ color: rgb(127, 44, 160);
/* oklch */ color: oklch(46.9% 0.184 314.5);
Tailwind
colors: {
  custom: {
    50: '#a86dbd',
    500: '#7f2ca0',
    950: '#000000',
  },
}
SCSS
$custom: #7f2ca0;
$custom-light: #a86dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2ca0",
  "rgb": {
    "r": 127,
    "g": 44,
    "b": 160
  },
  "hsl": {
    "h": 282.931,
    "s": 56.863,
    "l": 40
  },
  "oklch": {
    "l": 0.46919,
    "c": 0.18446,
    "h": 314.5
  },
  "luminance": 0.08851
}

Semantic roles & 50–950 ramp

primary
#7F2CA0
secondary
#82BF69
accent
#E04873
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7F2CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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