#7F2FB2#7F2FB2

#7F2FB2 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.5% C 0.198 H 308.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#7F2FB2
RGBrgb(127, 47, 178)
HSLhsl(277, 58%, 44%)
HSVhsv(277, 74%, 70%)
CMYKcmyk(28.7%, 73.6%, 0%, 30.2%)
CIE-LABlab(37.41, 55.88, -54.72)
CIE-LCHlch(37.41, 78.21, 315.60°)
OKLaboklab(48.54% 0.1236 -0.1552)
OKLCHoklch(48.54% 0.198 308.5)
XYZxyz(17.8031, 9.7597, 43.0568)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FB2 #62B22F
analogous
#3E2FB2 #7F2FB2 #B22FA4
triadic
#7F2FB2 #B27F2F #2FB27F
tetradic
#7F2FB2 #B23E2F #62B22F #2FA4B2
square
#7F2FB2 #B23E2F #62B22F #2FA4B2
split-complementary
#7F2FB2 #A4B22F #2FB23E
monochromatic
#3A1551 #5C2282 #7F2FB2 #9E4ED0 #B87EDD

Accessibility & contrast

On white

7.11
#7F2FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#7F2FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FB2
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FB2#FFFFFF#000000##FFFFFF
##7F2FB21.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0359AF
Tritanopia (blue-blind)
#774E6E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2fb2;
/* rgb */ color: rgb(127, 47, 178);
/* oklch */ color: oklch(48.5% 0.198 308.5);
Tailwind
colors: {
  custom: {
    50: '#a96fca',
    500: '#7f2fb2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fb2;
$custom-light: #a96fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fb2",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 178
  },
  "hsl": {
    "h": 276.641,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48536,
    "c": 0.19841,
    "h": 308.5
  },
  "luminance": 0.09759
}

Semantic roles & 50–950 ramp

primary
#7F2FB2
secondary
#96C677
accent
#E14683
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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