#7C2B94#7C2B94

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

Color values

HEX#7C2B94
RGBrgb(124, 43, 148)
HSLhsl(286, 55%, 37%)
HSVhsv(286, 71%, 58%)
CMYKcmyk(16.2%, 70.9%, 0%, 42%)
CIE-LABlab(34.30, 50.50, -41.69)
CIE-LCHlch(34.30, 65.48, 320.45°)
OKLaboklab(45.57% 0.1275 -0.1171)
OKLCHoklch(45.57% 0.173 317.4)
XYZxyz(14.5206, 8.1516, 28.8198)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2B94 #43942B
analogous
#482B94 #7C2B94 #942B77
triadic
#7C2B94 #947C2B #2B947C
tetradic
#7C2B94 #94482B #43942B #2B7794
square
#7C2B94 #94482B #43942B #2B7794
split-complementary
#7C2B94 #77942B #2B9448
monochromatic
#2D0F35 #541D65 #7C2B94 #A439C3 #BA67D3

Accessibility & contrast

On white

7.98
#7C2B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7C2B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2B94
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2B94#FFFFFF#000000##FFFFFF
##7C2B941.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#2E5392
Tritanopia (blue-blind)
#7B3F5C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c2b94;
/* rgb */ color: rgb(124, 43, 148);
/* oklch */ color: oklch(45.6% 0.173 317.4);
Tailwind
colors: {
  custom: {
    50: '#a56cb4',
    500: '#7c2b94',
    950: '#000000',
  },
}
SCSS
$custom: #7c2b94;
$custom-light: #a56cb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2b94",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 148
  },
  "hsl": {
    "h": 286.286,
    "s": 54.974,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45571,
    "c": 0.1731,
    "h": 317.4
  },
  "luminance": 0.08151
}

Semantic roles & 50–950 ramp

primary
#7C2B94
secondary
#76B962
accent
#DE496C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2B94

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

Preview Lab → · Contrast checker → · Palette generator →

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