#7C2D91#7C2D91

#7C2D91 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.168 H 318.5°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#7C2D91
RGBrgb(124, 45, 145)
HSLhsl(287, 53%, 37%)
HSVhsv(287, 69%, 57%)
CMYKcmyk(14.5%, 69%, 0%, 43.1%)
CIE-LABlab(34.41, 49.02, -39.68)
CIE-LCHlch(34.41, 63.07, 321.02°)
OKLaboklab(45.59% 0.1255 -0.1112)
OKLCHoklch(45.59% 0.168 318.5)
XYZxyz(14.3607, 8.2068, 27.6102)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2D91 #42912D
analogous
#4A2D91 #7C2D91 #912D74
triadic
#7C2D91 #917C2D #2D917C
tetradic
#7C2D91 #914A2D #42912D #2D7491
square
#7C2D91 #914A2D #42912D #2D7491
split-complementary
#7C2D91 #74912D #2D914A
monochromatic
#2C1034 #541F62 #7C2D91 #A43BC0 #BA68D0

Accessibility & contrast

On white

7.95
#7C2D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2D91
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2D91#FFFFFF#000000##FFFFFF
##7C2D911.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014C94
Deuteranopia (green-blind)
#32538F
Tritanopia (blue-blind)
#7C3F5B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c2d91;
/* rgb */ color: rgb(124, 45, 145);
/* oklch */ color: oklch(45.6% 0.168 318.5);
Tailwind
colors: {
  custom: {
    50: '#a56db2',
    500: '#7c2d91',
    950: '#000000',
  },
}
SCSS
$custom: #7c2d91;
$custom-light: #a56db2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2d91",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 145
  },
  "hsl": {
    "h": 287.4,
    "s": 52.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45591,
    "c": 0.16762,
    "h": 318.5
  },
  "luminance": 0.08206
}

Semantic roles & 50–950 ramp

primary
#7C2D91
secondary
#75B763
accent
#DC4C6A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2D91

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

Preview Lab → · Contrast checker → · Palette generator →

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