#7C286F#7C286F

#7C286F is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.0% C 0.144 H 334.5°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#7C286F
RGBrgb(124, 40, 111)
HSLhsl(309, 51%, 32%)
HSVhsv(309, 68%, 49%)
CMYKcmyk(0%, 67.7%, 10.5%, 51.4%)
CIE-LABlab(31.70, 44.83, -22.75)
CIE-LCHlch(31.70, 50.27, 333.09°)
OKLaboklab(43% 0.1301 -0.0621)
OKLCHoklch(43% 0.144 334.5)
XYZxyz(11.9403, 6.9513, 15.7487)
Luminance0.0695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C286F #287C35
analogous
#5F287C #7C286F #7C2845
triadic
#7C286F #6F7C28 #286F7C
tetradic
#7C286F #7C5F28 #287C35 #28457C
square
#7C286F #7C5F28 #287C35 #28457C
split-complementary
#7C286F #457C28 #287C5F
monochromatic
#1F0A1C #4E1946 #7C286F #AA3798 #C856B7

Accessibility & contrast

On white

8.79
#7C286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7C286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C286F
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C286F#FFFFFF#000000##FFFFFF
##7C286F1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274371
Deuteranopia (green-blind)
#434F6D
Tritanopia (blue-blind)
#822E48
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c286f;
/* rgb */ color: rgb(124, 40, 111);
/* oklch */ color: oklch(43.0% 0.144 334.5);
Tailwind
colors: {
  custom: {
    50: '#a56998',
    500: '#7c286f',
    950: '#000000',
  },
}
SCSS
$custom: #7c286f;
$custom-light: #a56998;
$custom-dark: #000000;
JSON
{
  "hex": "#7c286f",
  "rgb": {
    "r": 124,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 309.286,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43003,
    "c": 0.14418,
    "h": 334.5
  },
  "luminance": 0.0695
}

Semantic roles & 50–950 ramp

primary
#7C286F
secondary
#52AD60
accent
#DB634D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7C286F

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

Preview Lab → · Contrast checker → · Palette generator →

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