#7F2B98#7F2B98

#7F2B98 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.178 H 317.4°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7F2B98
RGBrgb(127, 43, 152)
HSLhsl(286, 56%, 38%)
HSVhsv(286, 72%, 60%)
CMYKcmyk(16.4%, 71.7%, 0%, 40.4%)
CIE-LABlab(35.02, 51.98, -42.95)
CIE-LCHlch(35.02, 67.43, 320.44°)
OKLaboklab(46.26% 0.131 -0.1206)
OKLCHoklch(46.26% 0.178 317.4)
XYZxyz(15.2829, 8.5074, 30.5367)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B98 #44982B
analogous
#492B98 #7F2B98 #982B7A
triadic
#7F2B98 #987F2B #2B987F
tetradic
#7F2B98 #98492B #44982B #2B7A98
square
#7F2B98 #98492B #44982B #2B7A98
split-complementary
#7F2B98 #7A982B #2B9849
monochromatic
#2F1039 #571E68 #7F2B98 #A639C7 #BC69D5

Accessibility & contrast

On white

7.77
#7F2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7F2B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2B98
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B98#FFFFFF#000000##FFFFFF
##7F2B981.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#2E5595
Tritanopia (blue-blind)
#7E415E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2b98;
/* rgb */ color: rgb(127, 43, 152);
/* oklch */ color: oklch(46.3% 0.178 317.4);
Tailwind
colors: {
  custom: {
    50: '#a86cb7',
    500: '#7f2b98',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b98;
$custom-light: #a86cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b98",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 286.239,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46264,
    "c": 0.17812,
    "h": 317.4
  },
  "luminance": 0.08507
}

Semantic roles & 50–950 ramp

primary
#7F2B98
secondary
#78BB64
accent
#DF496B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7F2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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