#7F2FB5#7F2FB5

#7F2FB5 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.201 H 307.7°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#7F2FB5
RGBrgb(127, 47, 181)
HSLhsl(276, 59%, 45%)
HSVhsv(276, 74%, 71%)
CMYKcmyk(29.8%, 74%, 0%, 29%)
CIE-LABlab(37.63, 56.54, -56.14)
CIE-LCHlch(37.63, 79.68, 315.21°)
OKLaboklab(48.76% 0.1231 -0.1594)
OKLCHoklch(48.76% 0.201 307.7)
XYZxyz(18.1076, 9.8815, 44.6605)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FB5 #65B52F
analogous
#3C2FB5 #7F2FB5 #B52FA8
triadic
#7F2FB5 #B57F2F #2FB57F
tetradic
#7F2FB5 #B53C2F #65B52F #2FA8B5
square
#7F2FB5 #B53C2F #65B52F #2FA8B5
split-complementary
#7F2FB5 #A8B52F #2FB53C
monochromatic
#3B1654 #5D2284 #7F2FB5 #9D50D1 #B880DE

Accessibility & contrast

On white

7.06
#7F2FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7F2FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FB5
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FB5#FFFFFF#000000##FFFFFF
##7F2FB51.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#764F70
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f2fb5;
/* rgb */ color: rgb(127, 47, 181);
/* oklch */ color: oklch(48.8% 0.201 307.7);
Tailwind
colors: {
  custom: {
    50: '#a96fcc',
    500: '#7f2fb5',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fb5;
$custom-light: #a96fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fb5",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 275.821,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48762,
    "c": 0.20137,
    "h": 307.7
  },
  "luminance": 0.09881
}

Semantic roles & 50–950 ramp

primary
#7F2FB5
secondary
#98C779
accent
#E24685
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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