#7F2EB7#7F2EB7

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

Color values

HEX#7F2EB7
RGBrgb(127, 46, 183)
HSLhsl(275, 60%, 45%)
HSVhsv(275, 75%, 72%)
CMYKcmyk(30.6%, 74.9%, 0%, 28.2%)
CIE-LABlab(37.64, 57.40, -57.31)
CIE-LCHlch(37.64, 81.11, 315.05°)
OKLaboklab(48.81% 0.1236 -0.1628)
OKLCHoklch(48.81% 0.204 307.2)
XYZxyz(18.2748, 9.8851, 45.7359)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EB7 #66B72E
analogous
#3A2EB7 #7F2EB7 #B72EAB
triadic
#7F2EB7 #B77F2E #2EB77F
tetradic
#7F2EB7 #B73A2E #66B72E #2EABB7
square
#7F2EB7 #B73A2E #66B72E #2EABB7
split-complementary
#7F2EB7 #ABB72E #2EB73A
monochromatic
#3B1555 #5D2286 #7F2EB7 #9D4FD3 #B880DF

Accessibility & contrast

On white

7.05
#7F2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2EB7
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EB7#FFFFFF#000000##FFFFFF
##7F2EB71.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0059B4
Tritanopia (blue-blind)
#764F71
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f2eb7;
/* rgb */ color: rgb(127, 46, 183);
/* oklch */ color: oklch(48.8% 0.204 307.2);
Tailwind
colors: {
  custom: {
    50: '#a96fcd',
    500: '#7f2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #7f2eb7;
$custom-light: #a96fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2eb7",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 275.474,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48814,
    "c": 0.20443,
    "h": 307.2
  },
  "luminance": 0.09885
}

Semantic roles & 50–950 ramp

primary
#7F2EB7
secondary
#99C879
accent
#E34585
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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