#7F2A90#7F2A90

#7F2A90 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.172 H 320.5°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7F2A90
RGBrgb(127, 42, 144)
HSLhsl(290, 55%, 36%)
HSVhsv(290, 71%, 56%)
CMYKcmyk(11.8%, 70.8%, 0%, 43.5%)
CIE-LABlab(34.36, 50.79, -39.12)
CIE-LCHlch(34.36, 64.11, 322.40°)
OKLaboklab(45.63% 0.1326 -0.1094)
OKLCHoklch(45.63% 0.172 320.5)
XYZxyz(14.6138, 8.1823, 27.1897)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A90 #3B902A
analogous
#4C2A90 #7F2A90 #902A6E
triadic
#7F2A90 #907F2A #2A907F
tetradic
#7F2A90 #904C2A #3B902A #2A6E90
square
#7F2A90 #904C2A #3B902A #2A6E90
split-complementary
#7F2A90 #6E902A #2A904C
monochromatic
#2B0E31 #551C61 #7F2A90 #A938BF #BF63D1

Accessibility & contrast

On white

7.97
#7F2A90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7F2A90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A90
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A90#FFFFFF#000000##FFFFFF
##7F2A901.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B93
Deuteranopia (green-blind)
#34548E
Tritanopia (blue-blind)
#803D5A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2a90;
/* rgb */ color: rgb(127, 42, 144);
/* oklch */ color: oklch(45.6% 0.172 320.5);
Tailwind
colors: {
  custom: {
    50: '#a76bb1',
    500: '#7f2a90',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a90;
$custom-light: #a76bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a90",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 144
  },
  "hsl": {
    "h": 290,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45629,
    "c": 0.17193,
    "h": 320.5
  },
  "luminance": 0.08182
}

Semantic roles & 50–950 ramp

primary
#7F2A90
secondary
#6DB75E
accent
#DE4A62
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2A90

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

Preview Lab → · Contrast checker → · Palette generator →

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