#7F2FB1#7F2FB1

#7F2FB1 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.5% C 0.197 H 308.8°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7F2FB1
RGBrgb(127, 47, 177)
HSLhsl(277, 58%, 44%)
HSVhsv(277, 73%, 69%)
CMYKcmyk(28.2%, 73.4%, 0%, 30.6%)
CIE-LABlab(37.33, 55.65, -54.24)
CIE-LCHlch(37.33, 77.71, 315.74°)
OKLaboklab(48.46% 0.1238 -0.1538)
OKLCHoklch(48.46% 0.197 308.8)
XYZxyz(17.7031, 9.7197, 42.5299)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FB1 #61B12F
analogous
#3E2FB1 #7F2FB1 #B12FA2
triadic
#7F2FB1 #B17F2F #2FB17F
tetradic
#7F2FB1 #B13E2F #61B12F #2FA2B1
square
#7F2FB1 #B13E2F #61B12F #2FA2B1
split-complementary
#7F2FB1 #A2B12F #2FB13E
monochromatic
#3A1550 #5C2281 #7F2FB1 #9E4DD0 #B87EDD

Accessibility & contrast

On white

7.13
#7F2FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#7F2FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FB1
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FB1#FFFFFF#000000##FFFFFF
##7F2FB11.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B5
Deuteranopia (green-blind)
#0759AE
Tritanopia (blue-blind)
#774D6D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2fb1;
/* rgb */ color: rgb(127, 47, 177);
/* oklch */ color: oklch(48.5% 0.197 308.8);
Tailwind
colors: {
  custom: {
    50: '#a96fc9',
    500: '#7f2fb1',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fb1;
$custom-light: #a96fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fb1",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 276.923,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48461,
    "c": 0.19743,
    "h": 308.8
  },
  "luminance": 0.09719
}

Semantic roles & 50–950 ramp

primary
#7F2FB1
secondary
#95C576
accent
#E14782
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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