#7E2FB7#7E2FB7

#7E2FB7 is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.8% C 0.203 H 306.7°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#7E2FB7
RGBrgb(126, 47, 183)
HSLhsl(275, 59%, 45%)
HSVhsv(275, 74%, 72%)
CMYKcmyk(31.1%, 74.3%, 0%, 28.2%)
CIE-LABlab(37.64, 56.80, -57.31)
CIE-LCHlch(37.64, 80.69, 314.75°)
OKLaboklab(48.79% 0.1213 -0.1629)
OKLCHoklch(48.79% 0.203 306.7)
XYZxyz(18.1661, 9.8877, 45.7421)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FB7 #68B72F
analogous
#3A2FB7 #7E2FB7 #B72FAC
triadic
#7E2FB7 #B77E2F #2FB77E
tetradic
#7E2FB7 #B73A2F #68B72F #2FACB7
square
#7E2FB7 #B73A2F #68B72F #2FACB7
split-complementary
#7E2FB7 #ACB72F #2FB73A
monochromatic
#3B1656 #5C2286 #7E2FB7 #9C51D2 #B882DF

Accessibility & contrast

On white

7.05
#7E2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#7E2FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FB7
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FB7#FFFFFF#000000##FFFFFF
##7E2FB71.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BB
Deuteranopia (green-blind)
#0059B4
Tritanopia (blue-blind)
#745071
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e2fb7;
/* rgb */ color: rgb(126, 47, 183);
/* oklch */ color: oklch(48.8% 0.203 306.7);
Tailwind
colors: {
  custom: {
    50: '#a86fcd',
    500: '#7e2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fb7;
$custom-light: #a86fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fb7",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 274.853,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48788,
    "c": 0.20308,
    "h": 306.7
  },
  "luminance": 0.09888
}

Semantic roles & 50–950 ramp

primary
#7E2FB7
secondary
#9BC87A
accent
#E24587
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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