#7F2F9A#7F2F9A

#7F2F9A is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.8% C 0.175 H 316.3°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#7F2F9A
RGBrgb(127, 47, 154)
HSLhsl(285, 53%, 39%)
HSVhsv(285, 69%, 60%)
CMYKcmyk(17.5%, 69.5%, 0%, 39.6%)
CIE-LABlab(35.75, 50.70, -42.99)
CIE-LCHlch(35.75, 66.48, 319.70°)
OKLaboklab(46.83% 0.1265 -0.1208)
OKLCHoklch(46.83% 0.175 316.3)
XYZxyz(15.6008, 8.8788, 31.4576)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F9A #4A9A2F
analogous
#4A2F9A #7F2F9A #9A2F80
triadic
#7F2F9A #9A7F2F #2F9A7F
tetradic
#7F2F9A #9A4A2F #4A9A2F #2F809A
square
#7F2F9A #9A4A2F #4A9A2F #2F809A
split-complementary
#7F2F9A #809A2F #2F9A4A
monochromatic
#32123C #58216B #7F2F9A #A441C5 #BA70D3

Accessibility & contrast

On white

7.57
#7F2F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2F9A
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F9A#FFFFFF#000000##FFFFFF
##7F2F9A1.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9D
Deuteranopia (green-blind)
#2F5698
Tritanopia (blue-blind)
#7D4461
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2f9a;
/* rgb */ color: rgb(127, 47, 154);
/* oklch */ color: oklch(46.8% 0.175 316.3);
Tailwind
colors: {
  custom: {
    50: '#a76eb8',
    500: '#7f2f9a',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f9a;
$custom-light: #a76eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f9a",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 154
  },
  "hsl": {
    "h": 284.86,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46829,
    "c": 0.17492,
    "h": 316.3
  },
  "luminance": 0.08878
}

Semantic roles & 50–950 ramp

primary
#7F2F9A
secondary
#7EBB6A
accent
#DD4B70
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F2F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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