#7F2EB8#7F2EB8

#7F2EB8 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.9% C 0.205 H 306.9°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#7F2EB8
RGBrgb(127, 46, 184)
HSLhsl(275, 60%, 45%)
HSVhsv(275, 75%, 72%)
CMYKcmyk(31%, 75%, 0%, 27.8%)
CIE-LABlab(37.71, 57.62, -57.78)
CIE-LCHlch(37.71, 81.60, 314.92°)
OKLaboklab(48.89% 0.1234 -0.1642)
OKLCHoklch(48.89% 0.205 306.9)
XYZxyz(18.3793, 9.9269, 46.2860)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EB8 #67B82E
analogous
#3A2EB8 #7F2EB8 #B82EAC
triadic
#7F2EB8 #B87F2E #2EB87F
tetradic
#7F2EB8 #B83A2E #67B82E #2EACB8
square
#7F2EB8 #B83A2E #67B82E #2EACB8
split-complementary
#7F2EB8 #ACB82E #2EB83A
monochromatic
#3B1656 #5D2287 #7F2EB8 #9D50D3 #B881DF

Accessibility & contrast

On white

7.03
#7F2EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#7F2EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F2EB8
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EB8#FFFFFF#000000##FFFFFF
##7F2EB81.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#755071
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f2eb8;
/* rgb */ color: rgb(127, 46, 184);
/* oklch */ color: oklch(48.9% 0.205 306.9);
Tailwind
colors: {
  custom: {
    50: '#a96fce',
    500: '#7f2eb8',
    950: '#000000',
  },
}
SCSS
$custom: #7f2eb8;
$custom-light: #a96fce;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2eb8",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 275.217,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4889,
    "c": 0.20541,
    "h": 306.9
  },
  "luminance": 0.09927
}

Semantic roles & 50–950 ramp

primary
#7F2EB8
secondary
#9AC879
accent
#E34586
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F2EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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