#7F2F94#7F2F94

#7F2F94 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.169 H 318.6°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#7F2F94
RGBrgb(127, 47, 148)
HSLhsl(288, 52%, 38%)
HSVhsv(288, 68%, 58%)
CMYKcmyk(14.2%, 68.2%, 0%, 42%)
CIE-LABlab(35.37, 49.47, -39.95)
CIE-LCHlch(35.37, 63.59, 321.07°)
OKLaboklab(46.43% 0.1268 -0.1119)
OKLCHoklch(46.43% 0.169 318.6)
XYZxyz(15.1135, 8.6838, 28.8913)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F94 #44942F
analogous
#4C2F94 #7F2F94 #942F76
triadic
#7F2F94 #947F2F #2F947F
tetradic
#7F2F94 #944C2F #44942F #2F7694
square
#7F2F94 #944C2F #44942F #2F7694
split-complementary
#7F2F94 #76942F #2F944C
monochromatic
#2F1137 #572066 #7F2F94 #A63EC2 #BC6DD1

Accessibility & contrast

On white

7.67
#7F2F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#7F2F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2F94
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F94#FFFFFF#000000##FFFFFF
##7F2F941.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054E97
Deuteranopia (green-blind)
#345692
Tritanopia (blue-blind)
#7F415D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7f2f94;
/* rgb */ color: rgb(127, 47, 148);
/* oklch */ color: oklch(46.4% 0.169 318.6);
Tailwind
colors: {
  custom: {
    50: '#a76eb4',
    500: '#7f2f94',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f94;
$custom-light: #a76eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f94",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 287.525,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46433,
    "c": 0.16913,
    "h": 318.6
  },
  "luminance": 0.08683
}

Semantic roles & 50–950 ramp

primary
#7F2F94
secondary
#78B867
accent
#DB4D6A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F2F94

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

Preview Lab → · Contrast checker → · Palette generator →

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