#7F2B85#7F2B85

#7F2B85 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.161 H 325.0°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#7F2B85
RGBrgb(127, 43, 133)
HSLhsl(296, 51%, 35%)
HSVhsv(296, 68%, 52%)
CMYKcmyk(4.5%, 67.7%, 0%, 47.8%)
CIE-LABlab(33.85, 48.26, -33.15)
CIE-LCHlch(33.85, 58.55, 325.51°)
OKLaboklab(45.05% 0.1316 -0.092)
OKLCHoklch(45.05% 0.161 325)
XYZxyz(13.8496, 7.9341, 22.9877)
Luminance0.0793 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2B85 #31852B
analogous
#522B85 #7F2B85 #852B5E
triadic
#7F2B85 #857F2B #2B857F
tetradic
#7F2B85 #85522B #31852B #2B5E85
square
#7F2B85 #85522B #31852B #2B5E85
split-complementary
#7F2B85 #5E852B #2B8552
monochromatic
#270D29 #531C57 #7F2B85 #AB3AB3 #C45FCB

Accessibility & contrast

On white

8.12
#7F2B85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7F2B85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2B85
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2B85#FFFFFF#000000##FFFFFF
##7F2B851.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194988
Deuteranopia (green-blind)
#3C5383
Tritanopia (blue-blind)
#823954
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7f2b85;
/* rgb */ color: rgb(127, 43, 133);
/* oklch */ color: oklch(45.0% 0.161 325.0);
Tailwind
colors: {
  custom: {
    50: '#a76ba9',
    500: '#7f2b85',
    950: '#000000',
  },
}
SCSS
$custom: #7f2b85;
$custom-light: #a76ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2b85",
  "rgb": {
    "r": 127,
    "g": 43,
    "b": 133
  },
  "hsl": {
    "h": 296,
    "s": 51.136,
    "l": 34.51
  },
  "oklch": {
    "l": 0.45045,
    "c": 0.1606,
    "h": 325
  },
  "luminance": 0.07933
}

Semantic roles & 50–950 ramp

primary
#7F2B85
secondary
#60B15B
accent
#DB4D57
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2B85

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

Preview Lab → · Contrast checker → · Palette generator →

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