#7F2A93#7F2A93

#7F2A93 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.175 H 319.3°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#7F2A93
RGBrgb(127, 42, 147)
HSLhsl(289, 56%, 37%)
HSVhsv(289, 71%, 58%)
CMYKcmyk(13.6%, 71.4%, 0%, 42.4%)
CIE-LABlab(34.55, 51.39, -40.65)
CIE-LCHlch(34.55, 65.52, 321.65°)
OKLaboklab(45.83% 0.1325 -0.1139)
OKLCHoklch(45.83% 0.175 319.3)
XYZxyz(14.8461, 8.2752, 28.4134)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2A93 #3E932A
analogous
#4A2A93 #7F2A93 #932A73
triadic
#7F2A93 #937F2A #2A937F
tetradic
#7F2A93 #934A2A #3E932A #2A7393
square
#7F2A93 #934A2A #3E932A #2A7393
split-complementary
#7F2A93 #73932A #2A934A
monochromatic
#2D0F34 #561C63 #7F2A93 #A838C3 #BE65D3

Accessibility & contrast

On white

7.91
#7F2A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7F2A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2A93
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2A93#FFFFFF#000000##FFFFFF
##7F2A931.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C96
Deuteranopia (green-blind)
#325491
Tritanopia (blue-blind)
#7F3E5B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2a93;
/* rgb */ color: rgb(127, 42, 147);
/* oklch */ color: oklch(45.8% 0.175 319.3);
Tailwind
colors: {
  custom: {
    50: '#a76cb3',
    500: '#7f2a93',
    950: '#000000',
  },
}
SCSS
$custom: #7f2a93;
$custom-light: #a76cb3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2a93",
  "rgb": {
    "r": 127,
    "g": 42,
    "b": 147
  },
  "hsl": {
    "h": 288.571,
    "s": 55.556,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45826,
    "c": 0.1747,
    "h": 319.3
  },
  "luminance": 0.08275
}

Semantic roles & 50–950 ramp

primary
#7F2A93
secondary
#71B960
accent
#DF4965
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2A93

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

Preview Lab → · Contrast checker → · Palette generator →

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