#7F2FB6#7F2FB6

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

Color values

HEX#7F2FB6
RGBrgb(127, 47, 182)
HSLhsl(276, 59%, 45%)
HSVhsv(276, 74%, 71%)
CMYKcmyk(30.2%, 74.2%, 0%, 28.6%)
CIE-LABlab(37.70, 56.77, -56.61)
CIE-LCHlch(37.70, 80.17, 315.08°)
OKLaboklab(48.84% 0.1229 -0.1608)
OKLCHoklch(48.84% 0.202 307.4)
XYZxyz(18.2106, 9.9227, 45.2028)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2FB6 #66B62F
analogous
#3C2FB6 #7F2FB6 #B62FA9
triadic
#7F2FB6 #B67F2F #2FB67F
tetradic
#7F2FB6 #B63C2F #66B62F #2FA9B6
square
#7F2FB6 #B63C2F #66B62F #2FA9B6
split-complementary
#7F2FB6 #A9B62F #2FB63C
monochromatic
#3B1655 #5D2285 #7F2FB6 #9D50D2 #B881DE

Accessibility & contrast

On white

7.04
#7F2FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2FB6
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2FB6#FFFFFF#000000##FFFFFF
##7F2FB61.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2fb6;
/* rgb */ color: rgb(127, 47, 182);
/* oklch */ color: oklch(48.8% 0.202 307.4);
Tailwind
colors: {
  custom: {
    50: '#a96fcd',
    500: '#7f2fb6',
    950: '#000000',
  },
}
SCSS
$custom: #7f2fb6;
$custom-light: #a96fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2fb6",
  "rgb": {
    "r": 127,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 275.556,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48838,
    "c": 0.20235,
    "h": 307.4
  },
  "luminance": 0.09922
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7F2FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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