#7C2F99#7C2F99

#7C2F99 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.173 H 315.3°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7C2F99
RGBrgb(124, 47, 153)
HSLhsl(284, 53%, 39%)
HSVhsv(284, 69%, 60%)
CMYKcmyk(19%, 69.3%, 0%, 40%)
CIE-LABlab(35.24, 49.81, -43.23)
CIE-LCHlch(35.24, 65.95, 319.04°)
OKLaboklab(46.35% 0.1227 -0.1216)
OKLCHoklch(46.35% 0.173 315.3)
XYZxyz(15.0775, 8.6186, 31.0001)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2F99 #4C992F
analogous
#472F99 #7C2F99 #992F81
triadic
#7C2F99 #997C2F #2F997C
tetradic
#7C2F99 #99472F #4C992F #2F8199
square
#7C2F99 #99472F #4C992F #2F8199
split-complementary
#7C2F99 #81992F #2F9947
monochromatic
#30123B #56216A #7C2F99 #A041C5 #B86FD3

Accessibility & contrast

On white

7.71
#7C2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7C2F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2F99
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2F99#FFFFFF#000000##FFFFFF
##7C2F991.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#2D5597
Tritanopia (blue-blind)
#7A4460
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7c2f99;
/* rgb */ color: rgb(124, 47, 153);
/* oklch */ color: oklch(46.4% 0.173 315.3);
Tailwind
colors: {
  custom: {
    50: '#a56eb8',
    500: '#7c2f99',
    950: '#000000',
  },
}
SCSS
$custom: #7c2f99;
$custom-light: #a56eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2f99",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 283.585,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46351,
    "c": 0.17275,
    "h": 315.3
  },
  "luminance": 0.08618
}

Semantic roles & 50–950 ramp

primary
#7C2F99
secondary
#80BA69
accent
#DC4B73
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7C2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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