#7E2BB9#7E2BB9

#7E2BB9 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.6% C 0.209 H 306.5°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#7E2BB9
RGBrgb(126, 43, 185)
HSLhsl(275, 62%, 45%)
HSVhsv(275, 77%, 73%)
CMYKcmyk(31.9%, 76.8%, 0%, 27.5%)
CIE-LABlab(37.24, 58.84, -59.14)
CIE-LCHlch(37.24, 83.43, 314.86°)
OKLaboklab(48.55% 0.1245 -0.1682)
OKLCHoklch(48.55% 0.209 306.5)
XYZxyz(18.2231, 9.6663, 46.7953)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BB9 #66B92B
analogous
#372BB9 #7E2BB9 #B92BAD
triadic
#7E2BB9 #B97E2B #2BB97E
tetradic
#7E2BB9 #B9372B #66B92B #2BADB9
square
#7E2BB9 #B9372B #66B92B #2BADB9
split-complementary
#7E2BB9 #ADB92B #2BB937
monochromatic
#3A1456 #5C1F87 #7E2BB9 #9C4CD5 #B87EE1

Accessibility & contrast

On white

7.16
#7E2BB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#7E2BB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2BB9
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BB9#FFFFFF#000000##FFFFFF
##7E2BB91.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0058B6
Tritanopia (blue-blind)
#744F71
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #7e2bb9;
/* rgb */ color: rgb(126, 43, 185);
/* oklch */ color: oklch(48.6% 0.209 306.5);
Tailwind
colors: {
  custom: {
    50: '#a96ecf',
    500: '#7e2bb9',
    950: '#000000',
  },
}
SCSS
$custom: #7e2bb9;
$custom-light: #a96ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2bb9",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 185
  },
  "hsl": {
    "h": 275.07,
    "s": 62.281,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48551,
    "c": 0.20929,
    "h": 306.5
  },
  "luminance": 0.09666
}

Semantic roles & 50–950 ramp

primary
#7E2BB9
secondary
#99C976
accent
#E54286
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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