#7F2B88#7F2B88

#7F2B88 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.163 H 323.7°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7F2B88
RGBrgb(127, 43, 136)
HSLhsl(294, 52%, 35%)
HSVhsv(294, 68%, 53%)
CMYKcmyk(6.6%, 68.4%, 0%, 46.7%)
CIE-LABlab(34.02, 48.83, -34.73)
CIE-LCHlch(34.02, 59.92, 324.58°)
OKLaboklab(45.23% 0.1317 -0.0966)
OKLCHoklch(45.23% 0.163 323.7)
XYZxyz(14.0598, 8.0182, 24.0949)
Luminance0.0802 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B88 #34882B
analogous
#512B88 #7F2B88 #882B62
triadic
#7F2B88 #887F2B #2B887F
tetradic
#7F2B88 #88512B #34882B #2B6288
square
#7F2B88 #88512B #34882B #2B6288
split-complementary
#7F2B88 #62882B #2B8851
monochromatic
#280E2B #541C5A #7F2B88 #AA3AB6 #C261CD

Accessibility & contrast

On white

8.07
#7F2B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7F2B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2B88
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B88#FFFFFF#000000##FFFFFF
##7F2B881.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154A8B
Deuteranopia (green-blind)
#3A5386
Tritanopia (blue-blind)
#813A56
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2b88;
/* rgb */ color: rgb(127, 43, 136);
/* oklch */ color: oklch(45.2% 0.163 323.7);
Tailwind
colors: {
  custom: {
    50: '#a76cab',
    500: '#7f2b88',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b88;
$custom-light: #a76cab;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b88",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 136
  },
  "hsl": {
    "h": 294.194,
    "s": 51.955,
    "l": 35.098
  },
  "oklch": {
    "l": 0.45228,
    "c": 0.16331,
    "h": 323.7
  },
  "luminance": 0.08017
}

Semantic roles & 50–950 ramp

primary
#7F2B88
secondary
#64B35C
accent
#DB4C5A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2B88

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

Preview Lab → · Contrast checker → · Palette generator →

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