#7C2F92#7C2F92

#7C2F92 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.166 H 317.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#7C2F92
RGBrgb(124, 47, 146)
HSLhsl(287, 51%, 38%)
HSVhsv(287, 68%, 57%)
CMYKcmyk(15.1%, 67.8%, 0%, 42.7%)
CIE-LABlab(34.79, 48.34, -39.68)
CIE-LCHlch(34.79, 62.54, 320.62°)
OKLaboklab(45.88% 0.1231 -0.1112)
OKLCHoklch(45.88% 0.166 317.9)
XYZxyz(14.5163, 8.3941, 28.0441)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2F92 #45922F
analogous
#4B2F92 #7C2F92 #922F76
triadic
#7C2F92 #927C2F #2F927C
tetradic
#7C2F92 #924B2F #45922F #2F7692
square
#7C2F92 #924B2F #45922F #2F7692
split-complementary
#7C2F92 #76922F #2F924B
monochromatic
#2D1135 #552064 #7C2F92 #A33EC0 #B96CD0

Accessibility & contrast

On white

7.84
#7C2F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7C2F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2F92
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2F92#FFFFFF#000000##FFFFFF
##7C2F921.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#064D95
Deuteranopia (green-blind)
#335490
Tritanopia (blue-blind)
#7B415C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c2f92;
/* rgb */ color: rgb(124, 47, 146);
/* oklch */ color: oklch(45.9% 0.166 317.9);
Tailwind
colors: {
  custom: {
    50: '#a56eb2',
    500: '#7c2f92',
    950: '#000000',
  },
}
SCSS
$custom: #7c2f92;
$custom-light: #a56eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2f92",
  "rgb": {
    "r": 124,
    "g": 47,
    "b": 146
  },
  "hsl": {
    "h": 286.667,
    "s": 51.295,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45884,
    "c": 0.16587,
    "h": 317.9
  },
  "luminance": 0.08393
}

Semantic roles & 50–950 ramp

primary
#7C2F92
secondary
#78B766
accent
#DB4D6D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2F92

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

Preview Lab → · Contrast checker → · Palette generator →

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