#7F2F9B#7F2F9B

#7F2F9B is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.176 H 316.0°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7F2F9B
RGBrgb(127, 47, 155)
HSLhsl(284, 53%, 40%)
HSVhsv(284, 70%, 61%)
CMYKcmyk(18.1%, 69.7%, 0%, 39.2%)
CIE-LABlab(35.81, 50.91, -43.49)
CIE-LCHlch(35.81, 66.96, 319.49°)
OKLaboklab(46.9% 0.1264 -0.1223)
OKLCHoklch(46.9% 0.176 316)
XYZxyz(15.6844, 8.9122, 31.8980)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2F9B #4B9B2F
analogous
#492F9B #7F2F9B #9B2F81
triadic
#7F2F9B #9B7F2F #2F9B7F
tetradic
#7F2F9B #9B492F #4B9B2F #2F819B
square
#7F2F9B #9B492F #4B9B2F #2F819B
split-complementary
#7F2F9B #819B2F #2F9B49
monochromatic
#32133D #59216C #7F2F9B #A342C6 #BA71D4

Accessibility & contrast

On white

7.55
#7F2F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7F2F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2F9B
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2F9B#FFFFFF#000000##FFFFFF
##7F2F9B1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9E
Deuteranopia (green-blind)
#2E5699
Tritanopia (blue-blind)
#7D4461
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7f2f9b;
/* rgb */ color: rgb(127, 47, 155);
/* oklch */ color: oklch(46.9% 0.176 316.0);
Tailwind
colors: {
  custom: {
    50: '#a76eb9',
    500: '#7f2f9b',
    950: '#000000',
  },
}
SCSS
$custom: #7f2f9b;
$custom-light: #a76eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2f9b",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 284.444,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46896,
    "c": 0.17589,
    "h": 316
  },
  "luminance": 0.08912
}

Semantic roles & 50–950 ramp

primary
#7F2F9B
secondary
#7FBB6A
accent
#DD4B71
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7F2F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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