#7C2897#7C2897

#7C2897 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.180 H 316.6°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#7C2897
RGBrgb(124, 40, 151)
HSLhsl(285, 58%, 37%)
HSVhsv(285, 74%, 59%)
CMYKcmyk(17.9%, 73.5%, 0%, 40.8%)
CIE-LABlab(34.06, 52.34, -43.90)
CIE-LCHlch(34.06, 68.32, 320.01°)
OKLaboklab(45.47% 0.1304 -0.1235)
OKLCHoklch(45.47% 0.18 316.6)
XYZxyz(14.6560, 8.0376, 30.0516)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2897 #439728
analogous
#442897 #7C2897 #97287B
triadic
#7C2897 #977C28 #28977C
tetradic
#7C2897 #974428 #439728 #287B97
square
#7C2897 #974428 #439728 #287B97
split-complementary
#7C2897 #7B9728 #289744
monochromatic
#2D0E36 #541B67 #7C2897 #A435C7 #BA64D6

Accessibility & contrast

On white

8.05
#7C2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#7C2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2897
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2897#FFFFFF#000000##FFFFFF
##7C28971.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#295295
Tritanopia (blue-blind)
#7A3F5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c2897;
/* rgb */ color: rgb(124, 40, 151);
/* oklch */ color: oklch(45.5% 0.180 316.6);
Tailwind
colors: {
  custom: {
    50: '#a66ab6',
    500: '#7c2897',
    950: '#000000',
  },
}
SCSS
$custom: #7c2897;
$custom-light: #a66ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2897",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 285.405,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45467,
    "c": 0.17963,
    "h": 316.6
  },
  "luminance": 0.08037
}

Semantic roles & 50–950 ramp

primary
#7C2897
secondary
#76BC5F
accent
#E1466C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2897

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

Preview Lab → · Contrast checker → · Palette generator →

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