#7E2DBD#7E2DBD

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

Color values

HEX#7E2DBD
RGBrgb(126, 45, 189)
HSLhsl(274, 62%, 46%)
HSVhsv(274, 76%, 74%)
CMYKcmyk(33.3%, 76.2%, 0%, 25.9%)
CIE-LABlab(37.82, 58.96, -60.55)
CIE-LCHlch(37.82, 84.52, 314.24°)
OKLaboklab(49.06% 0.1219 -0.1724)
OKLCHoklch(49.06% 0.211 305.3)
XYZxyz(18.7258, 9.9866, 49.0754)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DBD #6CBD2D
analogous
#362DBD #7E2DBD #BD2DB4
triadic
#7E2DBD #BD7E2D #2DBD7E
tetradic
#7E2DBD #BD362D #6CBD2D #2DB4BD
square
#7E2DBD #BD362D #6CBD2D #2DB4BD
split-complementary
#7E2DBD #B4BD2D #2DBD36
monochromatic
#3C155A #5D218C #7E2DBD #9C52D6 #B883E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2DBD#FFFFFF#000000##FFFFFF
##7E2DBD1.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)
#0057C1
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#725174
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7e2dbd;
/* rgb */ color: rgb(126, 45, 189);
/* oklch */ color: oklch(49.1% 0.211 305.3);
Tailwind
colors: {
  custom: {
    50: '#a96fd2',
    500: '#7e2dbd',
    950: '#000000',
  },
}
SCSS
$custom: #7e2dbd;
$custom-light: #a96fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2dbd",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 189
  },
  "hsl": {
    "h": 273.75,
    "s": 61.538,
    "l": 45.882
  },
  "oklch": {
    "l": 0.49057,
    "c": 0.21112,
    "h": 305.3
  },
  "luminance": 0.09987
}

Semantic roles & 50–950 ramp

primary
#7E2DBD
secondary
#9ECB7B
accent
#E5438A
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7E2DBD

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

Preview Lab → · Contrast checker → · Palette generator →

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