#7E2BA9#7E2BA9

#7E2BA9 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 47.3% C 0.194 H 311.2°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#7E2BA9
RGBrgb(126, 43, 169)
HSLhsl(280, 59%, 42%)
HSVhsv(280, 75%, 66%)
CMYKcmyk(25.4%, 74.6%, 0%, 33.7%)
CIE-LABlab(36.04, 55.34, -51.58)
CIE-LCHlch(36.04, 75.65, 317.02°)
OKLaboklab(47.33% 0.1276 -0.146)
OKLCHoklch(47.33% 0.194 311.2)
XYZxyz(16.6281, 9.0284, 38.3951)
Luminance0.0903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BA9 #56A92B
analogous
#3F2BA9 #7E2BA9 #A92B95
triadic
#7E2BA9 #A97E2B #2BA97E
tetradic
#7E2BA9 #A93F2B #56A92B #2B95A9
square
#7E2BA9 #A93F2B #56A92B #2B95A9
split-complementary
#7E2BA9 #95A92B #2BA93F
monochromatic
#351247 #5A1F78 #7E2BA9 #9F42CF #B873DB

Accessibility & contrast

On white

7.49
#7E2BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#7E2BA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2BA9
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BA9#FFFFFF#000000##FFFFFF
##7E2BA91.007.492.817.49
#FFFFFF7.491.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#1456A6
Tritanopia (blue-blind)
#784868
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7e2ba9;
/* rgb */ color: rgb(126, 43, 169);
/* oklch */ color: oklch(47.3% 0.194 311.2);
Tailwind
colors: {
  custom: {
    50: '#a86dc3',
    500: '#7e2ba9',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ba9;
$custom-light: #a86dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ba9",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 169
  },
  "hsl": {
    "h": 279.524,
    "s": 59.434,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47331,
    "c": 0.19391,
    "h": 311.2
  },
  "luminance": 0.09028
}

Semantic roles & 50–950 ramp

primary
#7E2BA9
secondary
#8AC36D
accent
#E3457B
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7E2BA9

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

Preview Lab → · Contrast checker → · Palette generator →

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