#7F2EB3#7F2EB3

#7F2EB3 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.201 H 308.3°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#7F2EB3
RGBrgb(127, 46, 179)
HSLhsl(277, 59%, 44%)
HSVhsv(277, 74%, 70%)
CMYKcmyk(29.1%, 74.3%, 0%, 29.8%)
CIE-LABlab(37.34, 56.51, -55.42)
CIE-LCHlch(37.34, 79.15, 315.55°)
OKLaboklab(48.51% 0.1244 -0.1573)
OKLCHoklch(48.51% 0.201 308.3)
XYZxyz(17.8644, 9.7210, 43.5743)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EB3 #62B32E
analogous
#3C2EB3 #7F2EB3 #B32EA5
triadic
#7F2EB3 #B37F2E #2EB37F
tetradic
#7F2EB3 #B33C2E #62B32E #2EA5B3
square
#7F2EB3 #B33C2E #62B32E #2EA5B3
split-complementary
#7F2EB3 #A5B32E #2EB33C
monochromatic
#3A1552 #5C2182 #7F2EB3 #9E4DD1 #B87EDE

Accessibility & contrast

On white

7.13
#7F2EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2EB3
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EB3#FFFFFF#000000##FFFFFF
##7F2EB31.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f2eb3;
/* rgb */ color: rgb(127, 46, 179);
/* oklch */ color: oklch(48.5% 0.201 308.3);
Tailwind
colors: {
  custom: {
    50: '#a96fcb',
    500: '#7f2eb3',
    950: '#000000',
  },
}
SCSS
$custom: #7f2eb3;
$custom-light: #a96fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2eb3",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 276.541,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.48509,
    "c": 0.20052,
    "h": 308.3
  },
  "luminance": 0.09721
}

Semantic roles & 50–950 ramp

primary
#7F2EB3
secondary
#96C676
accent
#E24683
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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