#7F288C#7F288C

#7F288C is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.171 H 322.2°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7F288C
RGBrgb(127, 40, 140)
HSLhsl(292, 56%, 35%)
HSVhsv(292, 71%, 55%)
CMYKcmyk(9.3%, 71.4%, 0%, 45.1%)
CIE-LABlab(33.82, 50.83, -37.51)
CIE-LCHlch(33.82, 63.17, 323.57°)
OKLaboklab(45.17% 0.135 -0.1047)
OKLCHoklch(45.17% 0.171 322.2)
XYZxyz(14.2443, 7.9238, 25.5850)
Luminance0.0792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F288C #358C28
analogous
#4D288C #7F288C #8C2867
triadic
#7F288C #8C7F28 #288C7F
tetradic
#7F288C #8C4D28 #358C28 #28678C
square
#7F288C #8C4D28 #358C28 #28678C
split-complementary
#7F288C #678C28 #288C4D
monochromatic
#290D2D #541A5C #7F288C #AA36BC #C25ED1

Accessibility & contrast

On white

8.13
#7F288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7F288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F288C
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F288C#FFFFFF#000000##FFFFFF
##7F288C1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03498F
Deuteranopia (green-blind)
#36538A
Tritanopia (blue-blind)
#813A57
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f288c;
/* rgb */ color: rgb(127, 40, 140);
/* oklch */ color: oklch(45.2% 0.171 322.2);
Tailwind
colors: {
  custom: {
    50: '#a76aae',
    500: '#7f288c',
    950: '#000000',
  },
}
SCSS
$custom: #7f288c;
$custom-light: #a76aae;
$custom-dark: #000000;
JSON
{
  "hex": "#7f288c",
  "rgb": {
    "r": 127,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 292.2,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.45165,
    "c": 0.17083,
    "h": 322.2
  },
  "luminance": 0.07923
}

Semantic roles & 50–950 ramp

primary
#7F288C
secondary
#66B65A
accent
#DF495C
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F288C

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

Preview Lab → · Contrast checker → · Palette generator →

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