#7E2DBB#7E2DBB

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

Color values

HEX#7E2DBB
RGBrgb(126, 45, 187)
HSLhsl(274, 61%, 45%)
HSVhsv(274, 76%, 73%)
CMYKcmyk(32.6%, 75.9%, 0%, 26.7%)
CIE-LABlab(37.66, 58.51, -59.63)
CIE-LCHlch(37.66, 83.54, 314.46°)
OKLaboklab(48.9% 0.1223 -0.1697)
OKLCHoklch(48.9% 0.209 305.8)
XYZxyz(18.5102, 9.9004, 47.9399)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DBB #6ABB2D
analogous
#372DBB #7E2DBB #BB2DB1
triadic
#7E2DBB #BB7E2D #2DBB7E
tetradic
#7E2DBB #BB372D #6ABB2D #2DB1BB
square
#7E2DBB #BB372D #6ABB2D #2DB1BB
split-complementary
#7E2DBB #B1BB2D #2DBB37
monochromatic
#3C1558 #5D218A #7E2DBB #9C50D5 #B882E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2DBB#FFFFFF#000000##FFFFFF
##7E2DBB1.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)
#0056BF
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#735173
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e2dbb;
/* rgb */ color: rgb(126, 45, 187);
/* oklch */ color: oklch(48.9% 0.209 305.8);
Tailwind
colors: {
  custom: {
    50: '#a96fd0',
    500: '#7e2dbb',
    950: '#000000',
  },
}
SCSS
$custom: #7e2dbb;
$custom-light: #a96fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2dbb",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 187
  },
  "hsl": {
    "h": 274.225,
    "s": 61.207,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48899,
    "c": 0.20917,
    "h": 305.8
  },
  "luminance": 0.099
}

Semantic roles & 50–950 ramp

primary
#7E2DBB
secondary
#9CCA7A
accent
#E44389
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82

Preview Lab

Preview with #7E2DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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