#7C2A87#7C2A87

#7C2A87 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.6% C 0.162 H 322.8°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7C2A87
RGBrgb(124, 42, 135)
HSLhsl(293, 53%, 35%)
HSVhsv(293, 69%, 53%)
CMYKcmyk(8.1%, 68.9%, 0%, 47.1%)
CIE-LABlab(33.33, 48.33, -35.24)
CIE-LCHlch(33.33, 59.81, 323.90°)
OKLaboklab(44.62% 0.1292 -0.0982)
OKLCHoklch(44.62% 0.162 322.8)
XYZxyz(13.5129, 7.6910, 23.6897)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2A87 #35872A
analogous
#4D2A87 #7C2A87 #872A64
triadic
#7C2A87 #877C2A #2A877C
tetradic
#7C2A87 #874D2A #35872A #2A6487
square
#7C2A87 #874D2A #35872A #2A6487
split-complementary
#7C2A87 #64872A #2A874D
monochromatic
#260D2A #511B58 #7C2A87 #A739B6 #C05ECD

Accessibility & contrast

On white

8.27
#7C2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7C2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2A87
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2A87#FFFFFF#000000##FFFFFF
##7C2A871.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11488A
Deuteranopia (green-blind)
#375285
Tritanopia (blue-blind)
#7E3955
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c2a87;
/* rgb */ color: rgb(124, 42, 135);
/* oklch */ color: oklch(44.6% 0.162 322.8);
Tailwind
colors: {
  custom: {
    50: '#a56baa',
    500: '#7c2a87',
    950: '#000000',
  },
}
SCSS
$custom: #7c2a87;
$custom-light: #a56baa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2a87",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 292.903,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44617,
    "c": 0.16225,
    "h": 322.8
  },
  "luminance": 0.0769
}

Semantic roles & 50–950 ramp

primary
#7C2A87
secondary
#65B35A
accent
#DC4C5D
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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