#7C2F93#7C2F93

#7C2F93 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.167 H 317.5°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#7C2F93
RGBrgb(124, 47, 147)
HSLhsl(286, 52%, 38%)
HSVhsv(286, 68%, 58%)
CMYKcmyk(15.6%, 68%, 0%, 42.4%)
CIE-LABlab(34.85, 48.55, -40.19)
CIE-LCHlch(34.85, 63.03, 320.38°)
OKLaboklab(45.95% 0.123 -0.1127)
OKLCHoklch(45.95% 0.167 317.5)
XYZxyz(14.5944, 8.4253, 28.4556)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2F93 #46932F
analogous
#4A2F93 #7C2F93 #932F78
triadic
#7C2F93 #937C2F #2F937C
tetradic
#7C2F93 #934A2F #46932F #2F7893
square
#7C2F93 #934A2F #46932F #2F7893
split-complementary
#7C2F93 #78932F #2F934A
monochromatic
#2E1136 #552065 #7C2F93 #A33EC1 #B96CD0

Accessibility & contrast

On white

7.82
#7C2F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2F93
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2F93#FFFFFF#000000##FFFFFF
##7C2F931.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034D96
Deuteranopia (green-blind)
#325491
Tritanopia (blue-blind)
#7B425D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c2f93;
/* rgb */ color: rgb(124, 47, 147);
/* oklch */ color: oklch(46.0% 0.167 317.5);
Tailwind
colors: {
  custom: {
    50: '#a56eb3',
    500: '#7c2f93',
    950: '#000000',
  },
}
SCSS
$custom: #7c2f93;
$custom-light: #a56eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2f93",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 147
  },
  "hsl": {
    "h": 286.2,
    "s": 51.546,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4595,
    "c": 0.16685,
    "h": 317.5
  },
  "luminance": 0.08425
}

Semantic roles & 50–950 ramp

primary
#7C2F93
secondary
#79B766
accent
#DB4D6E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2F93

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

Preview Lab → · Contrast checker → · Palette generator →

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