#7E2BAE#7E2BAE

#7E2BAE is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.7% C 0.199 H 309.6°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#7E2BAE
RGBrgb(126, 43, 174)
HSLhsl(278, 60%, 43%)
HSVhsv(278, 75%, 68%)
CMYKcmyk(27.6%, 75.3%, 0%, 31.8%)
CIE-LABlab(36.40, 56.42, -53.97)
CIE-LCHlch(36.40, 78.08, 316.27°)
OKLaboklab(47.7% 0.1268 -0.153)
OKLCHoklch(47.7% 0.199 309.6)
XYZxyz(17.1065, 9.2197, 40.9146)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BAE #5BAE2B
analogous
#3C2BAE #7E2BAE #AE2B9D
triadic
#7E2BAE #AE7E2B #2BAE7E
tetradic
#7E2BAE #AE3C2B #5BAE2B #2B9DAE
square
#7E2BAE #AE3C2B #5BAE2B #2B9DAE
split-complementary
#7E2BAE #9DAE2B #2BAE3C
monochromatic
#37134C #5A1F7D #7E2BAE #9E45D1 #B776DD

Accessibility & contrast

On white

7.38
#7E2BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7E2BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2BAE
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BAE#FFFFFF#000000##FFFFFF
##7E2BAE1.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0357AB
Tritanopia (blue-blind)
#774A6B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7e2bae;
/* rgb */ color: rgb(126, 43, 174);
/* oklch */ color: oklch(47.7% 0.199 309.6);
Tailwind
colors: {
  custom: {
    50: '#a86dc7',
    500: '#7e2bae',
    950: '#000000',
  },
}
SCSS
$custom: #7e2bae;
$custom-light: #a86dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2bae",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 278.015,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47704,
    "c": 0.19871,
    "h": 309.6
  },
  "luminance": 0.09219
}

Semantic roles & 50–950 ramp

primary
#7E2BAE
secondary
#8FC570
accent
#E4447F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #7E2BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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