#7F2D8B#7F2D8B

#7F2D8B is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.6% C 0.163 H 322.3°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7F2D8B
RGBrgb(127, 45, 139)
HSLhsl(292, 51%, 36%)
HSVhsv(292, 68%, 55%)
CMYKcmyk(8.6%, 67.6%, 0%, 45.5%)
CIE-LABlab(34.51, 48.55, -35.81)
CIE-LCHlch(34.51, 60.33, 323.59°)
OKLaboklab(45.64% 0.1293 -0.0998)
OKLCHoklch(45.64% 0.163 322.3)
XYZxyz(14.3505, 8.2537, 25.2583)
Luminance0.0825 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2D8B #398B2D
analogous
#502D8B #7F2D8B #8B2D68
triadic
#7F2D8B #8B7F2D #2D8B7F
tetradic
#7F2D8B #8B502D #398B2D #2D688B
square
#7F2D8B #8B502D #398B2D #2D688B
split-complementary
#7F2D8B #688B2D #2D8B50
monochromatic
#2B0F2F #551E5D #7F2D8B #A93CB9 #C065CD

Accessibility & contrast

On white

7.92
#7F2D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7F2D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2D8B
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2D8B#FFFFFF#000000##FFFFFF
##7F2D8B1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144B8E
Deuteranopia (green-blind)
#3A5489
Tritanopia (blue-blind)
#813C58
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7f2d8b;
/* rgb */ color: rgb(127, 45, 139);
/* oklch */ color: oklch(45.6% 0.163 322.3);
Tailwind
colors: {
  custom: {
    50: '#a76dad',
    500: '#7f2d8b',
    950: '#000000',
  },
}
SCSS
$custom: #7f2d8b;
$custom-light: #a76dad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2d8b",
  "rgb": {
    "r": 127,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 292.34,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45635,
    "c": 0.16335,
    "h": 322.3
  },
  "luminance": 0.08253
}

Semantic roles & 50–950 ramp

primary
#7F2D8B
secondary
#6BB460
accent
#DB4D5F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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