#7E2FB6#7E2FB6

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

Color values

HEX#7E2FB6
RGBrgb(126, 47, 182)
HSLhsl(275, 59%, 45%)
HSVhsv(275, 74%, 71%)
CMYKcmyk(30.8%, 74.2%, 0%, 28.6%)
CIE-LABlab(37.57, 56.58, -56.84)
CIE-LCHlch(37.57, 80.20, 314.87°)
OKLaboklab(48.71% 0.1215 -0.1615)
OKLCHoklch(48.71% 0.202 307)
XYZxyz(18.0624, 9.8463, 45.1959)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FB6 #67B62F
analogous
#3A2FB6 #7E2FB6 #B62FAB
triadic
#7E2FB6 #B67E2F #2FB67E
tetradic
#7E2FB6 #B63A2F #67B62F #2FABB6
square
#7E2FB6 #B63A2F #67B62F #2FABB6
split-complementary
#7E2FB6 #ABB62F #2FB63A
monochromatic
#3B1655 #5C2285 #7E2FB6 #9C50D2 #B881DE

Accessibility & contrast

On white

7.07
#7E2FB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#7E2FB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2FB6
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FB6#FFFFFF#000000##FFFFFF
##7E2FB61.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#0059B3
Tritanopia (blue-blind)
#744F70
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e2fb6;
/* rgb */ color: rgb(126, 47, 182);
/* oklch */ color: oklch(48.7% 0.202 307.0);
Tailwind
colors: {
  custom: {
    50: '#a86fcd',
    500: '#7e2fb6',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fb6;
$custom-light: #a86fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fb6",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 182
  },
  "hsl": {
    "h": 275.111,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48711,
    "c": 0.20209,
    "h": 307
  },
  "luminance": 0.09846
}

Semantic roles & 50–950 ramp

primary
#7E2FB6
secondary
#9AC779
accent
#E24687
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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