#7F2FB3#7F2FB3

#7F2FB3 is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.6% C 0.199 H 308.2°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7F2FB3
RGBrgb(127, 47, 179)
HSLhsl(276, 58%, 44%)
HSVhsv(276, 74%, 70%)
CMYKcmyk(29.1%, 73.7%, 0%, 29.8%)
CIE-LABlab(37.48, 56.10, -55.19)
CIE-LCHlch(37.48, 78.70, 315.47°)
OKLaboklab(48.61% 0.1234 -0.1566)
OKLCHoklch(48.61% 0.199 308.2)
XYZxyz(17.9039, 9.8000, 43.5875)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FB3 #63B32F
analogous
#3D2FB3 #7F2FB3 #B32FA5
triadic
#7F2FB3 #B37F2F #2FB37F
tetradic
#7F2FB3 #B33D2F #63B32F #2FA5B3
square
#7F2FB3 #B33D2F #63B32F #2FA5B3
split-complementary
#7F2FB3 #A5B32F #2FB33D
monochromatic
#3A1652 #5D2283 #7F2FB3 #9D4FD1 #B87FDD

Accessibility & contrast

On white

7.09
#7F2FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#7F2FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2FB3
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FB3#FFFFFF#000000##FFFFFF
##7F2FB31.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0059B0
Tritanopia (blue-blind)
#774E6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2fb3;
/* rgb */ color: rgb(127, 47, 179);
/* oklch */ color: oklch(48.6% 0.199 308.2);
Tailwind
colors: {
  custom: {
    50: '#a96fcb',
    500: '#7f2fb3',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fb3;
$custom-light: #a96fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fb3",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 276.364,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.48611,
    "c": 0.1994,
    "h": 308.2
  },
  "luminance": 0.098
}

Semantic roles & 50–950 ramp

primary
#7F2FB3
secondary
#97C678
accent
#E24683
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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