#7C2B97#7C2B97

#7C2B97 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.176 H 316.3°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7C2B97
RGBrgb(124, 43, 151)
HSLhsl(285, 56%, 38%)
HSVhsv(285, 72%, 59%)
CMYKcmyk(17.9%, 71.5%, 0%, 40.8%)
CIE-LABlab(34.49, 51.11, -43.21)
CIE-LCHlch(34.49, 66.93, 319.79°)
OKLaboklab(45.78% 0.1273 -0.1215)
OKLCHoklch(45.78% 0.176 316.3)
XYZxyz(14.7611, 8.2478, 30.0866)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2B97 #46972B
analogous
#462B97 #7C2B97 #972B7C
triadic
#7C2B97 #977C2B #2B977C
tetradic
#7C2B97 #97462B #46972B #2B7C97
square
#7C2B97 #97462B #46972B #2B7C97
split-complementary
#7C2B97 #7C972B #2B9746
monochromatic
#2E1038 #551D67 #7C2B97 #A339C7 #B968D4

Accessibility & contrast

On white

7.93
#7C2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7C2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2B97
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2B97#FFFFFF#000000##FFFFFF
##7C2B971.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#2B5395
Tritanopia (blue-blind)
#7A415E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c2b97;
/* rgb */ color: rgb(124, 43, 151);
/* oklch */ color: oklch(45.8% 0.176 316.3);
Tailwind
colors: {
  custom: {
    50: '#a56cb6',
    500: '#7c2b97',
    950: '#000000',
  },
}
SCSS
$custom: #7c2b97;
$custom-light: #a56cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2b97",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 285,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45775,
    "c": 0.17596,
    "h": 316.3
  },
  "luminance": 0.08247
}

Semantic roles & 50–950 ramp

primary
#7C2B97
secondary
#79BB63
accent
#DF496E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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