#7F2EB2#7F2EB2

#7F2EB2 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 48.4% C 0.200 H 308.6°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#7F2EB2
RGBrgb(127, 46, 178)
HSLhsl(277, 59%, 44%)
HSVhsv(277, 74%, 70%)
CMYKcmyk(28.7%, 74.2%, 0%, 30.2%)
CIE-LABlab(37.26, 56.29, -54.95)
CIE-LCHlch(37.26, 78.66, 315.69°)
OKLaboklab(48.43% 0.1246 -0.1559)
OKLCHoklch(48.43% 0.2 308.6)
XYZxyz(17.7636, 9.6807, 43.0436)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EB2 #61B22E
analogous
#3D2EB2 #7F2EB2 #B22EA3
triadic
#7F2EB2 #B27F2E #2EB27F
tetradic
#7F2EB2 #B23D2E #61B22E #2EA3B2
square
#7F2EB2 #B23D2E #61B22E #2EA3B2
split-complementary
#7F2EB2 #A3B22E #2EB23D
monochromatic
#3A1551 #5C2181 #7F2EB2 #9E4CD1 #B87DDD

Accessibility & contrast

On white

7.15
#7F2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2EB2
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EB2#FFFFFF#000000##FFFFFF
##7F2EB21.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2eb2;
/* rgb */ color: rgb(127, 46, 178);
/* oklch */ color: oklch(48.4% 0.200 308.6);
Tailwind
colors: {
  custom: {
    50: '#a96fca',
    500: '#7f2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #7f2eb2;
$custom-light: #a96fca;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2eb2",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 276.818,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.48434,
    "c": 0.19954,
    "h": 308.6
  },
  "luminance": 0.0968
}

Semantic roles & 50–950 ramp

primary
#7F2EB2
secondary
#95C676
accent
#E24682
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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