#7F2EB9#7F2EB9

#7F2EB9 is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 49.0% C 0.206 H 306.7°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#7F2EB9
RGBrgb(127, 46, 185)
HSLhsl(275, 60%, 45%)
HSVhsv(275, 75%, 73%)
CMYKcmyk(31.4%, 75.1%, 0%, 27.5%)
CIE-LABlab(37.79, 57.85, -58.24)
CIE-LCHlch(37.79, 82.09, 314.80°)
OKLaboklab(48.97% 0.1232 -0.1656)
OKLCHoklch(48.97% 0.206 306.7)
XYZxyz(18.4844, 9.9690, 46.8400)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F2EB9 #68B92E
analogous
#392EB9 #7F2EB9 #B92EAD
triadic
#7F2EB9 #B97F2E #2EB97F
tetradic
#7F2EB9 #B9392E #68B92E #2EADB9
square
#7F2EB9 #B9392E #68B92E #2EADB9
split-complementary
#7F2EB9 #ADB92E #2EB939
monochromatic
#3C1657 #5D2288 #7F2EB9 #9D51D4 #B882E0

Accessibility & contrast

On white

7.01
#7F2EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F2EB9
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F2EB9#FFFFFF#000000##FFFFFF
##7F2EB91.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BD
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#755072
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7f2eb9;
/* rgb */ color: rgb(127, 46, 185);
/* oklch */ color: oklch(49.0% 0.206 306.7);
Tailwind
colors: {
  custom: {
    50: '#a96fcf',
    500: '#7f2eb9',
    950: '#000000',
  },
}
SCSS
$custom: #7f2eb9;
$custom-light: #a96fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7f2eb9",
  "rgb": {
    "r": 127,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 274.964,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48968,
    "c": 0.20639,
    "h": 306.7
  },
  "luminance": 0.09969
}

Semantic roles & 50–950 ramp

primary
#7F2EB9
secondary
#9BC97A
accent
#E34487
background
#FAF7FC
surface
#F5EDF9
border
#CFC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7F2EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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