#7E2EBB#7E2EBB

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

Color values

HEX#7E2EBB
RGBrgb(126, 46, 187)
HSLhsl(274, 61%, 46%)
HSVhsv(274, 75%, 73%)
CMYKcmyk(32.6%, 75.4%, 0%, 26.7%)
CIE-LABlab(37.80, 58.11, -59.40)
CIE-LCHlch(37.80, 83.10, 314.37°)
OKLaboklab(49% 0.1214 -0.169)
OKLCHoklch(49% 0.208 305.7)
XYZxyz(18.5488, 9.9776, 47.9528)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EBB #6BBB2E
analogous
#382EBB #7E2EBB #BB2EB1
triadic
#7E2EBB #BB7E2E #2EBB7E
tetradic
#7E2EBB #BB382E #6BBB2E #2EB1BB
square
#7E2EBB #BB382E #6BBB2E #2EB1BB
split-complementary
#7E2EBB #B1BB2E #2EBB38
monochromatic
#3C1659 #5D228A #7E2EBB #9C52D4 #B883E0

Accessibility & contrast

On white

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

On black

3.00
#7E2EBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7E2EBB#FFFFFF#000000##FFFFFF
##7E2EBB1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#735173
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e2ebb;
/* rgb */ color: rgb(126, 46, 187);
/* oklch */ color: oklch(49.0% 0.208 305.7);
Tailwind
colors: {
  custom: {
    50: '#a96fd0',
    500: '#7e2ebb',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ebb;
$custom-light: #a96fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ebb",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 187
  },
  "hsl": {
    "h": 274.043,
    "s": 60.515,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48997,
    "c": 0.20812,
    "h": 305.7
  },
  "luminance": 0.09977
}

Semantic roles & 50–950 ramp

primary
#7E2EBB
secondary
#9DCA7B
accent
#E44489
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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