#7F2F8B#7F2F8B

#7F2F8B is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.9% C 0.161 H 322.2°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#7F2F8B
RGBrgb(127, 47, 139)
HSLhsl(292, 49%, 36%)
HSVhsv(292, 66%, 55%)
CMYKcmyk(8.6%, 66.2%, 0%, 45.5%)
CIE-LABlab(34.82, 47.66, -35.31)
CIE-LCHlch(34.82, 59.32, 323.47°)
OKLaboklab(45.86% 0.1269 -0.0983)
OKLCHoklch(45.86% 0.161 322.2)
XYZxyz(14.4286, 8.4099, 25.2844)
Luminance0.0841 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F8B #3B8B2F
analogous
#512F8B #7F2F8B #8B2F69
triadic
#7F2F8B #8B7F2F #2F8B7F
tetradic
#7F2F8B #8B512F #3B8B2F #2F698B
square
#7F2F8B #8B512F #3B8B2F #2F698B
split-complementary
#7F2F8B #698B2F #2F8B51
monochromatic
#2B1030 #55205D #7F2F8B #A93EB9 #BF68CC

Accessibility & contrast

On white

7.83
#7F2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7F2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2F8B
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F8B#FFFFFF#000000##FFFFFF
##7F2F8B1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184C8E
Deuteranopia (green-blind)
#3B5589
Tritanopia (blue-blind)
#813E59
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7f2f8b;
/* rgb */ color: rgb(127, 47, 139);
/* oklch */ color: oklch(45.9% 0.161 322.2);
Tailwind
colors: {
  custom: {
    50: '#a76ead',
    500: '#7f2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f8b;
$custom-light: #a76ead;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f8b",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 292.174,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45864,
    "c": 0.16057,
    "h": 322.2
  },
  "luminance": 0.08409
}

Semantic roles & 50–950 ramp

primary
#7F2F8B
secondary
#6DB363
accent
#D94F61
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7F2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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