#7C2D90#7C2D90

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

Color values

HEX#7C2D90
RGBrgb(124, 45, 144)
HSLhsl(288, 52%, 37%)
HSVhsv(288, 69%, 56%)
CMYKcmyk(13.9%, 68.7%, 0%, 43.5%)
CIE-LABlab(34.35, 48.82, -39.16)
CIE-LCHlch(34.35, 62.59, 321.26°)
OKLaboklab(45.53% 0.1255 -0.1097)
OKLCHoklch(45.53% 0.167 318.8)
XYZxyz(14.2839, 8.1761, 27.2059)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2D90 #41902D
analogous
#4B2D90 #7C2D90 #902D73
triadic
#7C2D90 #907C2D #2D907C
tetradic
#7C2D90 #904B2D #41902D #2D7390
square
#7C2D90 #904B2D #41902D #2D7390
split-complementary
#7C2D90 #73902D #2D904B
monochromatic
#2C1033 #541E61 #7C2D90 #A43CBF #BB68D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C2D90#FFFFFF#000000##FFFFFF
##7C2D901.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)
#044C93
Deuteranopia (green-blind)
#33538E
Tritanopia (blue-blind)
#7C3F5B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c2d90;
/* rgb */ color: rgb(124, 45, 144);
/* oklch */ color: oklch(45.5% 0.167 318.8);
Tailwind
colors: {
  custom: {
    50: '#a56db1',
    500: '#7c2d90',
    950: '#000000',
  },
}
SCSS
$custom: #7c2d90;
$custom-light: #a56db1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2d90",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 144
  },
  "hsl": {
    "h": 287.879,
    "s": 52.381,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45525,
    "c": 0.16666,
    "h": 318.8
  },
  "luminance": 0.08175
}

Semantic roles & 50–950 ramp

primary
#7C2D90
secondary
#73B662
accent
#DC4C69
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2D90

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

Preview Lab → · Contrast checker → · Palette generator →

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