#7C2F94#7C2F94

#7C2F94 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.0% C 0.168 H 317.1°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#7C2F94
RGBrgb(124, 47, 148)
HSLhsl(286, 52%, 38%)
HSVhsv(286, 68%, 58%)
CMYKcmyk(16.2%, 68.2%, 0%, 42%)
CIE-LABlab(34.92, 48.76, -40.70)
CIE-LCHlch(34.92, 63.51, 320.15°)
OKLaboklab(46.02% 0.123 -0.1142)
OKLCHoklch(46.02% 0.168 317.1)
XYZxyz(14.6732, 8.4568, 28.8706)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2F94 #47942F
analogous
#4A2F94 #7C2F94 #942F79
triadic
#7C2F94 #947C2F #2F947C
tetradic
#7C2F94 #944A2F #47942F #2F7994
square
#7C2F94 #944A2F #47942F #2F7994
split-complementary
#7C2F94 #79942F #2F944A
monochromatic
#2E1137 #552066 #7C2F94 #A33EC2 #B96DD1

Accessibility & contrast

On white

7.80
#7C2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7C2F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2F94
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2F94#FFFFFF#000000##FFFFFF
##7C2F941.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D97
Deuteranopia (green-blind)
#315492
Tritanopia (blue-blind)
#7B425D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c2f94;
/* rgb */ color: rgb(124, 47, 148);
/* oklch */ color: oklch(46.0% 0.168 317.1);
Tailwind
colors: {
  custom: {
    50: '#a56eb4',
    500: '#7c2f94',
    950: '#000000',
  },
}
SCSS
$custom: #7c2f94;
$custom-light: #a56eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2f94",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 285.743,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46016,
    "c": 0.16783,
    "h": 317.1
  },
  "luminance": 0.08456
}

Semantic roles & 50–950 ramp

primary
#7C2F94
secondary
#7AB867
accent
#DB4D6E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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