#7F2EB5#7F2EB5

#7F2EB5 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.7% C 0.202 H 307.8°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#7F2EB5
RGBrgb(127, 46, 181)
HSLhsl(276, 59%, 45%)
HSVhsv(276, 75%, 71%)
CMYKcmyk(29.8%, 74.6%, 0%, 29%)
CIE-LABlab(37.49, 56.95, -56.37)
CIE-LCHlch(37.49, 80.13, 315.30°)
OKLaboklab(48.66% 0.124 -0.1601)
OKLCHoklch(48.66% 0.202 307.8)
XYZxyz(18.0681, 9.8025, 44.6473)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EB5 #64B52E
analogous
#3C2EB5 #7F2EB5 #B52EA8
triadic
#7F2EB5 #B57F2E #2EB57F
tetradic
#7F2EB5 #B53C2E #64B52E #2EA8B5
square
#7F2EB5 #B53C2E #64B52E #2EA8B5
split-complementary
#7F2EB5 #A8B52E #2EB53C
monochromatic
#3B1553 #5D2284 #7F2EB5 #9D4ED2 #B87FDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F2EB5#FFFFFF#000000##FFFFFF
##7F2EB51.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)
#0055B9
Deuteranopia (green-blind)
#0059B2
Tritanopia (blue-blind)
#764E6F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7f2eb5;
/* rgb */ color: rgb(127, 46, 181);
/* oklch */ color: oklch(48.7% 0.202 307.8);
Tailwind
colors: {
  custom: {
    50: '#a96fcc',
    500: '#7f2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #7f2eb5;
$custom-light: #a96fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2eb5",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 276,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48661,
    "c": 0.20247,
    "h": 307.8
  },
  "luminance": 0.09802
}

Semantic roles & 50–950 ramp

primary
#7F2EB5
secondary
#97C778
accent
#E34584
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7F2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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