#7F2A9B#7F2A9B

#7F2A9B is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.4% C 0.182 H 316.4°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#7F2A9B
RGBrgb(127, 42, 155)
HSLhsl(285, 57%, 39%)
HSVhsv(285, 73%, 61%)
CMYKcmyk(18.1%, 72.9%, 0%, 39.2%)
CIE-LABlab(35.07, 53.00, -44.69)
CIE-LCHlch(35.07, 69.33, 319.87°)
OKLaboklab(46.37% 0.1318 -0.1257)
OKLCHoklch(46.37% 0.182 316.4)
XYZxyz(15.4958, 8.5351, 31.8352)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A9B #469B2A
analogous
#462A9B #7F2A9B #9B2A7E
triadic
#7F2A9B #9B7F2A #2A9B7F
tetradic
#7F2A9B #9B462A #469B2A #2A7E9B
square
#7F2A9B #9B462A #469B2A #2A7E9B
split-complementary
#7F2A9B #7E9B2A #2A9B46
monochromatic
#30103B #581D6B #7F2A9B #A639C9 #BB69D6

Accessibility & contrast

On white

7.76
#7F2A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7F2A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A9B
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A9B#FFFFFF#000000##FFFFFF
##7F2A9B1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#2A5598
Tritanopia (blue-blind)
#7D4160
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2a9b;
/* rgb */ color: rgb(127, 42, 155);
/* oklch */ color: oklch(46.4% 0.182 316.4);
Tailwind
colors: {
  custom: {
    50: '#a86cb9',
    500: '#7f2a9b',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a9b;
$custom-light: #a86cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a9b",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 285.133,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46367,
    "c": 0.18215,
    "h": 316.4
  },
  "luminance": 0.08535
}

Semantic roles & 50–950 ramp

primary
#7F2A9B
secondary
#7ABD64
accent
#E1476D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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